We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8cc0b3 commit 7785c33Copy full SHA for 7785c33
1 file changed
datafusion/physical-optimizer/src/enforce_distribution.rs
@@ -1036,9 +1036,7 @@ fn remove_dist_changing_operators(
1036
// `LimitPushdown`. Without this, the limit would be lost when
1037
// the operator is stripped.
1038
if let Some(child_fetch) = distribution_context.plan.fetch() {
1039
- if is_sort_preserving_merge(&distribution_context.plan)
1040
- && fetch.is_none()
1041
- {
+ if is_sort_preserving_merge(&distribution_context.plan) && fetch.is_none() {
1042
spm = Some(Arc::clone(&distribution_context.plan));
1043
}
1044
fetch = Some(fetch.map_or(child_fetch, |f: usize| f.min(child_fetch)));
0 commit comments