iffyio commented on code in PR #1894:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1894#discussion_r2163067879


##########
src/parser/mod.rs:
##########
@@ -15018,6 +15018,9 @@ impl<'a> Parser<'a> {
 
     /// Parse a FETCH clause
     pub fn parse_fetch(&mut self) -> Result<Fetch, ParserError> {
+        if dialect_of!(self is SnowflakeDialect) {
+            return self.parse_snowflake_fetch();
+        }

Review Comment:
   Yeah in some cases like this the parser may accept syntax that is more 
permissive than the configured dialect allows, and downstream crates are 
expected to validate the returned AST if necessary before consuming



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

Reply via email to