sabir-akhadov-localstack commented on code in PR #2837:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2837#discussion_r4662605460


##########
src/parser/mod.rs:
##########
@@ -16782,6 +16782,24 @@ impl<'a> Parser<'a> {
                 }
                 .into());
             }
+        } else if self.dialect.supports_set_schema()
+            && !hivevar
+            && self.peek_keyword(Keyword::SCHEMA)
+            && !matches!(
+                self.peek_nth_token_ref(1).token,
+                Token::Eq

Review Comment:
   A `.` after `SCHEMA` also lands here, so `SET schema.var = 1` (a custom GUC, 
accepted by PG 16 and by main) now fails with `Expected: an expression, found: 
.`. Excluding `Token::Period` as well would keep it.



-- 
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]

Reply via email to