yoavcloud opened a new pull request, #1513: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1513
This fixes the following issue: https://github.com/apache/datafusion-sqlparser-rs/issues/1496 The parser encounters situations when the next keyword indicates an expression, but in fact it should be parsed as an identifier. Example from Snowflake: `SELECT MAX(interval) from tbl`. When the parser encounters the `interval` word it tries to parse an `Expr::Interval` but it fails because in the context of this query, `interval` is an identifier that Snowflake (unlike most other dialects) allows in unquoted form. The suggested approach is to try to parse the expression, but if that fails, fallback to parse an identifier under certain conditions. In addition, each dialect can now declare which keywords it reserves for use as an identifier in unquoted form. -- 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