Pajaraja opened a new pull request, #50208: URL: https://github.com/apache/spark/pull/50208
### What changes were proposed in this pull request? Change the place where we check whether there is a recursive CTE within a subquery. Also, change implementation to be instead of collecting all subqueries into one array, we do an in-place traversal of everything to check. ### Why are the changes needed? It's more efficient to do in-place traversal instead of collecting subqueries to an array and traverse, so this change is a small optimization. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Will be tested in [49955](https://github.com/apache/spark/pull/49955). ### Was this patch authored or co-authored using generative AI tooling? No. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org