iffyio commented on code in PR #1894: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1894#discussion_r2159884911
########## 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: It looks like the snowflake behavior is mostly a subset of the other dialects? If that's the case I think a reasonable approach would be to make the parser logic for the existing `parse_fetch` more permissive and accept the optional components regardless of dialect -- 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