Skip to content

Commit

Permalink
when the limit pushdown is complete, remove the limit logical plan
Browse files Browse the repository at this point in the history
  • Loading branch information
lutengda committed Aug 15, 2024
1 parent 5367e31 commit 6dd5e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/optimizer/src/push_down_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl OptimizerRule for PushDownLimit {
projected_schema: scan.projected_schema.clone(),
agg_with_grouping: scan.agg_with_grouping.clone(),
});
Some(plan.with_new_inputs(&[new_input])?)
Some(new_input)
}
}
LogicalPlan::Union(union) => {
Expand Down

0 comments on commit 6dd5e85

Please sign in to comment.