Skip to content

Commit

Permalink
remove accidental extra apply
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Apr 7, 2024
1 parent caa0d67 commit c723492
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions datafusion/expr/src/logical_plan/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1351,11 +1351,9 @@ impl LogicalPlan {
&self,
f: &mut F,
) -> Result<TreeNodeRecursion> {
self.apply(&mut |n| {
f(n)?
.visit_children(|| self.apply_subqueries(|c| c.apply_with_subqueries(f)))?
.visit_sibling(|| self.apply_children(|c| c.apply_with_subqueries(f)))
})
f(self)?
.visit_children(|| self.apply_subqueries(|c| c.apply_with_subqueries(f)))?
.visit_sibling(|| self.apply_children(|c| c.apply_with_subqueries(f)))
}

pub fn transform_with_subqueries<F: Fn(Self) -> Result<Transformed<Self>>>(
Expand Down

0 comments on commit c723492

Please sign in to comment.