We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caa0d67 commit c723492Copy full SHA for c723492
datafusion/expr/src/logical_plan/plan.rs
@@ -1351,11 +1351,9 @@ impl LogicalPlan {
1351
&self,
1352
f: &mut F,
1353
) -> Result<TreeNodeRecursion> {
1354
- self.apply(&mut |n| {
1355
- f(n)?
1356
- .visit_children(|| self.apply_subqueries(|c| c.apply_with_subqueries(f)))?
1357
- .visit_sibling(|| self.apply_children(|c| c.apply_with_subqueries(f)))
1358
- })
+ f(self)?
+ .visit_children(|| self.apply_subqueries(|c| c.apply_with_subqueries(f)))?
+ .visit_sibling(|| self.apply_children(|c| c.apply_with_subqueries(f)))
1359
}
1360
1361
pub fn transform_with_subqueries<F: Fn(Self) -> Result<Transformed<Self>>>(
0 commit comments