sabir-akhadov-localstack commented on code in PR #2680:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2680#discussion_r4313192768
##########
src/parser/mod.rs:
##########
@@ -4481,6 +4481,19 @@ impl<'a> Parser<'a> {
let array_expr = self.parse_expr()?;
self.expect_token(&Token::RParen)?;
InTarget::Unnest(Box::new(array_expr))
+ } else if !global
+ && self.dialect.supports_in_table_expression()
+ && matches!(self.peek_token_ref().token, Token::Word(_))
Review Comment:
Any word is taken as the table name, so `SELECT 1 IN FROM t` parses and
round-trips to `SELECT 1 IN FROM AS t`. Worth the same reserved-keyword check
as the table factor position (`is_table_factor`, cf. #2633).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]