peter-toth opened a new pull request, #9913: URL: https://github.com/apache/arrow-datafusion/pull/9913
## Which issue does this PR close? Closes #. ## Rationale for this change `TreeNode` APIs are inconsistent on `LogicaPlan` because `TreeNode:apply()` and `TreeNode::visit()` are recursing on subquery plans too, but `TreeNode::rewrite()` and `TreeNode::transform()` does rewrite/transform only the current level of the plan and doesn't touch subquery plans. ## What changes are included in this PR? This PR: - Introduces `LogicalPlan::apply_with_subqueries()`, `LogicalPlan::visit_with_subqueries()` to separate functionality with original the `TreeNode:apply()` and `TreeNode::visit()`. The new explicit `...with_subqueries()` versions do traverse into subquery plans, while the original don't. - Adds `LogicalPlan::rewrite_with_subqueries()` to be able to rewrite `LogicalPlan`s with their subquery plans. ## Are these changes tested? Yes, with Existing UTs. ## Are there any user-facing changes? 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
