LucaCappelletti94 commented on code in PR #2621:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2621#discussion_r4250649474
##########
src/parser/mod.rs:
##########
@@ -15326,6 +15326,11 @@ impl<'a> Parser<'a> {
mut expr: SetExpr,
precedence: u8,
) -> Result<Box<SetExpr>, ParserError> {
+ // A flat chain of set operations parses iteratively, but each folded
+ // operator still nests the AST one level deeper. Reserve one level of
+ // recursion budget per fold so downstream recursive consumers (derived
+ // `Clone`, visitors, planners) are bounded exactly as for nesting.
+ let mut fold_guards = Vec::new();
Review Comment:
You should remove `fold_guards` and its comment along with the guard.
```suggestion
```
--
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]