Skip to content
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

[Bug] The naming combination of digits and letters triggers a 701 error. #13729

Open
2 tasks done
LingweiKuang opened this issue Oct 11, 2024 · 1 comment
Open
2 tasks done

Comments

@LingweiKuang
Copy link

LingweiKuang commented Oct 11, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Version

1.3.2

Describe the bug and provide the minimal reproduce step

DROP DATABASE root.db0
CREATE DATABASE root.db0

# statement 1
CREATE TIMESERIES root.db0.t1 WITH datatype=INT32 attributes(K8SlZ=500)

# statement 2
CREATE TIMESERIES root.db0.t2 WITH datatype=INT32 attributes(K8SlZ='500l')

# statement 3
CREATE TIMESERIES root.db0.t3 WITH datatype=INT32 attributes(K8SlZ=500l)

What did you expect to see?

The above three statements should all execute successfully.

What did you see instead?

Statement 1 and Statement 2 executed successfully, but Statement 3 returns the error: Msg: 701: 500l is illegal, identifier not enclosed with backticks can only consist of digits, characters, and underscore.

Anything else?

Dear IoTDB team, upon reviewing the IoTDB software documentation, 500l should not be a keyword and meets the identifier naming rules, as it is a combination of digits and letters. However, in the attributes as a value, it requires backticks for successful creation. If it is a bug, please mark this issue as "bug". Thank you!

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@CritasWang
Copy link
Collaborator

500l does not comply with naming conventions, It means a number of type Long

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

No branches or pull requests

2 participants