-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[IOTDB-4769] When modifying an alias, you need to add back quotes when the alias is a special character. #7745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@lancelly Hi, Please review! |
| String unWrapped = nodeName.substring(1, nodeName.length() - 1); | ||
| String unWrapped = | ||
| nodeName | ||
| .substring(1, nodeName.length() - 1) | ||
| .replace(TsFileConstant.DOUBLE_BACK_QUOTE_STRING, TsFileConstant.BACK_QUOTE_STRING); | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method should stay the same~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to solve the problem that the double back quotes in the node path do not resolve to single quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the document also needs to be modified. Let me restore it here first, and then mention a new pr~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. LGTM~
###1. When modifying a time series alias, if the alias is a real number, you need to add a back quote, otherwise an error should be reported. Now you can successfully modify the alias without adding a back quote, causing the alias to not be used normally.
Before
When an alias is used and a piece of data is written, a new time series will be created incorrectly.
After
Create Time Series and modify alias without back quotes.

Change alias with back quotes, write a piece of data

2. Fix that two back quotes in the node path do not resolve to a back quote
Before:


After: