Skip to content

Commit 7785c33

Browse files
committed
fmt
1 parent c8cc0b3 commit 7785c33

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

datafusion/physical-optimizer/src/enforce_distribution.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,7 @@ fn remove_dist_changing_operators(
10361036
// `LimitPushdown`. Without this, the limit would be lost when
10371037
// the operator is stripped.
10381038
if let Some(child_fetch) = distribution_context.plan.fetch() {
1039-
if is_sort_preserving_merge(&distribution_context.plan)
1040-
&& fetch.is_none()
1041-
{
1039+
if is_sort_preserving_merge(&distribution_context.plan) && fetch.is_none() {
10421040
spm = Some(Arc::clone(&distribution_context.plan));
10431041
}
10441042
fetch = Some(fetch.map_or(child_fetch, |f: usize| f.min(child_fetch)));

0 commit comments

Comments
 (0)