ayman-sigma opened a new pull request, #1598: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1598
We currently support hyphenated identifiers for BigQuery. The current code expects the number segment to be the last segment ex: `foo-123` and should be followed by whitespace. That is true except when this identifier is part of an ObjectName. Ex: `SELECT * FROM foo-123.bar`. The issue is that tokenizer parse the previous string as: `[Word("foo"), Minus, Number("123."), Word("bar")]` This PR: 1. Fixes the tokenizer to tokenize `foo-123.bar` as `[Word('"foo"), Minus, Number("123"), Period, Word("bar")]` 2. Fixes the parser to parse `foo-123.bar` as `ObjectName([Ident("foo-123"), Ident("bar")])` instead of erroring out. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org