Skip to content

Commit 63fd896

Browse files
committed
fmt
1 parent 7cadeca commit 63fd896

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

datafusion/physical-optimizer/src/pushdown_sort.rs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,24 +110,19 @@ impl PhysicalOptimizerRule for PushdownSort {
110110
} else {
111111
inner
112112
};
113-
let new_spm = SortPreservingMergeExec::new(
114-
spm.expr().clone(),
115-
inner,
116-
)
117-
.with_fetch(spm.fetch())
118-
.with_round_robin_repartition(
119-
spm.enable_round_robin_repartition(),
120-
)
121-
.with_prefetch(SPM_PREFETCH_AFTER_SORT_ELIMINATION);
113+
let new_spm =
114+
SortPreservingMergeExec::new(spm.expr().clone(), inner)
115+
.with_fetch(spm.fetch())
116+
.with_round_robin_repartition(
117+
spm.enable_round_robin_repartition(),
118+
)
119+
.with_prefetch(SPM_PREFETCH_AFTER_SORT_ELIMINATION);
122120
return Ok(Transformed::yes(Arc::new(new_spm)));
123121
}
124122
SortOrderPushdownResult::Inexact { inner } => {
125-
let new_sort = SortExec::new(
126-
required_ordering.clone(),
127-
inner,
128-
)
129-
.with_fetch(sort_child.fetch())
130-
.with_preserve_partitioning(true);
123+
let new_sort = SortExec::new(required_ordering.clone(), inner)
124+
.with_fetch(sort_child.fetch())
125+
.with_preserve_partitioning(true);
131126
let new_spm = SortPreservingMergeExec::new(
132127
spm.expr().clone(),
133128
Arc::new(new_sort),

0 commit comments

Comments
 (0)