-
Notifications
You must be signed in to change notification settings - Fork 141
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] Underscore in identifier is ignored by ANTLR parser #1133
Comments
@MitchellGale-BitQuill Thanks for the info! It's strange that the example query has been used in documentation since 1.0. However, I tested it and found same problem with 1.0 docker. Need to confirm and see if we need to fix in code or in doc. |
We would need to extend the parser like: Bit-Quill#142 |
yes, because of the backward compatibility, I think we need to support it. Otherwise users have to always back quote although it is more ANSI SQL standard. For other storages, I think it's fine and please see "hidden" columns in Presto Hive connector: https://prestodb.io/docs/current/connector/hive.html#extra-hidden-columns. Analyzer is supposed to throw exception if |
Good to know. We'll push that PR forward since it solves a few bugs. |
What is the bug?
For some reason, underscore in a query is ignored by ANTLR parser. Take the query in our doc for example,
_id
becomesid
after parsing. This caused no fallback happen and failure in v2 engine since metadata field is not supported yet.How can one reproduce the bug?
What is the expected behavior?
User can use
_id
without issue for backward compatibility.What is your host/environment?
Do you have any additional context?
Not clear when is this broken. It is missed because all 5 IT on it are ignored. Because it's used in our documentation, we'd better fix it or the doc soon.
The text was updated successfully, but these errors were encountered: