File tree Expand file tree Collapse file tree
datafusion/physical-optimizer/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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) ,
You can’t perform that action at this time.
0 commit comments