Skip to content

Conversation

@23931017wu
Copy link
Contributor

@23931017wu 23931017wu commented Oct 26, 2022

###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:
图片

@23931017wu
Copy link
Contributor Author

@lancelly Hi, Please review!

Comment on lines 1667 to 1671
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);
;
Copy link
Contributor

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~

Copy link
Contributor Author

@23931017wu 23931017wu Nov 3, 2022

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.

Copy link
Contributor Author

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~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. LGTM~

@neuyilan neuyilan merged commit 62edbd4 into apache:master Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants