cetra3 commented on code in PR #14756: URL: https://github.com/apache/datafusion/pull/14756#discussion_r1972732904
########## datafusion/core/src/execution/session_state.rs: ########## @@ -483,12 +483,21 @@ impl SessionState { MsSQL, ClickHouse, BigQuery, Ansi." ) })?; - let mut statements = DFParser::parse_sql_with_dialect(sql, dialect.as_ref())?; + + let recursion_limit = self.config.options().sql_parser.recursion_limit; + + let mut statements = DFParser::parse_sql_with_dialect_limit( Review Comment: I've adjusted the PR to include a new `DFParserBuilder` that accomplishes this, but I've tried to keep the original methods as close as possible for backwards compat -- 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