Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuqi-lucas committed Jan 29, 2025
1 parent 8263922 commit ee2bda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/physical-optimizer/src/limit_pushdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub fn pushdown_limit_helper(
}
} else {
// Add fetch or a `LimitExec`:
// If the plan's children have limit, we shouldn't change the global state to true,
// If the plan's children have limit and the child's limit < parent's limit, we shouldn't change the global state to true,
// because the children limit will be overridden if the global state is changed.
if pushdown_plan
.children()
Expand Down

0 comments on commit ee2bda7

Please sign in to comment.