-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Quoted Table Column Identifiers Not Allowing ! Character #38854
Comments
A lower priority but I also noticed that we cannot create tables with This fails:
But should be legit according to MySQL docs. |
Following up on this one to add more context. According to the MySQL guide I think ! is allowed because it falls in the range. The Unicode value for ! is U+0021. See reference here: https://dev.mysql.com/doc/refman/8.3/en/identifiers.html Which specifies the following: Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000:
|
it looks like the column name check specifically excludes the starrocks/fe/fe-core/src/main/java/com/starrocks/sql/analyzer/FeNameFormat.java Lines 39 to 42 in 4feeec0
|
Thanks, we will check it. |
Due to some historical reasons, our delete operation requires that the column name of the predicate in the statement cannot contain some special symbols, such as |
Thanks for checking on the feasibility. |
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks! |
According to the MySQL standard a quoted name should be able to contain most ASCII characters except NULL but including !. When I run the following command I get a syntax error:
StarRocks produces a syntax error:
If I remove the ! characters, the table creates as expected.
Steps to reproduce the behavior (Required)
Run the following CREATE TABLE command:
Expected behavior (Required)
Table should create with quoted column names that contain ! character
Real behavior (Required)
A syntax error is produced that indicates the ! character is not allowed in quoted column identifier names
StarRocks version (Required)
3.2.2-269e832
The text was updated successfully, but these errors were encountered: