File tree 4 files changed +10
-11
lines changed 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,7 @@ impl PhysicalOptimizerRule for CoalesceBatches {
66
66
|| plan_any
67
67
. downcast_ref :: < RepartitionExec > ( )
68
68
. map ( |repart_exec| {
69
- !matches ! (
70
- repart_exec. partitioning( ) . clone( ) ,
71
- Partitioning :: RoundRobinBatch ( _)
72
- )
69
+ !matches ! ( repart_exec. partitioning( ) , Partitioning :: RoundRobinBatch ( _) | Partitioning :: HashSelectionBitmap ( _, _) )
73
70
} )
74
71
. unwrap_or ( false ) ;
75
72
if wrap_in_coalesce {
Original file line number Diff line number Diff line change @@ -1020,7 +1020,10 @@ impl ExecutionPlan for AggregateExec {
1020
1020
}
1021
1021
1022
1022
fn requried_filtered_input ( & self ) -> bool {
1023
- matches ! ( self . mode( ) , AggregateMode :: FinalPartitioned ( HashPartitionMode :: SelectionBitmap ) )
1023
+ matches ! (
1024
+ self . mode( ) ,
1025
+ AggregateMode :: FinalPartitioned ( HashPartitionMode :: SelectionBitmap )
1026
+ )
1024
1027
}
1025
1028
}
1026
1029
Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ impl ExecutionPlan for RepartitionExec {
653
653
}
654
654
655
655
fn output_filtered_batches ( & self ) -> bool {
656
- matches ! ( self . partitioning( ) , Partitioning :: HashSelectionBitmap ( _, _) )
656
+ matches ! ( self . partitioning( ) , Partitioning :: HashSelectionBitmap ( _, _) )
657
657
}
658
658
659
659
fn execute (
Original file line number Diff line number Diff line change @@ -1136,11 +1136,10 @@ physical_plan
1136
1136
03)----CoalescePartitionsExec
1137
1137
04)------AggregateExec: mode=Partial, gby=[], aggr=[median(alias1)]
1138
1138
05)--------AggregateExec: mode=FinalPartitioned(SelectionBitmap), gby=[alias1@0 as alias1], aggr=[]
1139
- 06)----------CoalesceBatchesExec: target_batch_size=8192
1140
- 07)------------RepartitionExec: partitioning=HashSelectionBitmap([alias1@0], 4), input_partitions=4
1141
- 08)--------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
1142
- 09)----------------AggregateExec: mode=Partial, gby=[c@0 as alias1], aggr=[]
1143
- 10)------------------DataSourceExec: partitions=1, partition_sizes=[1]
1139
+ 06)----------RepartitionExec: partitioning=HashSelectionBitmap([alias1@0], 4), input_partitions=4
1140
+ 07)------------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
1141
+ 08)--------------AggregateExec: mode=Partial, gby=[c@0 as alias1], aggr=[]
1142
+ 09)----------------DataSourceExec: partitions=1, partition_sizes=[1]
1144
1143
1145
1144
# TODO: it should be 3 after fix: https://github.com/apache/datafusion/issues/15383
1146
1145
query I
You can’t perform that action at this time.
0 commit comments