Skip to content

Commit b358371

Browse files
Update datafusion/physical-optimizer/src/enforce_sorting/sort_pushdown.rs
Co-authored-by: Adrian Garcia Badaracco <[email protected]>
1 parent 8b59fd8 commit b358371

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎datafusion/physical-optimizer/src/enforce_sorting/sort_pushdown.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ fn pushdown_requirement_to_children(
231231
// sort-with-limit, or UDTFs that may expand rows) must stop the pushdown.
232232
let effect = plan.cardinality_effect();
233233
if !matches!(
234-
effect,
235-
CardinalityEffect::Equal | CardinalityEffect::LowerEqual
234+
plan.cardinality_effect(),
235+
CardinalityEffect::Equal
236236
) {
237237
return Ok(None);
238238
}

0 commit comments

Comments
 (0)