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