Skip to content

Commit 02ea910

Browse files
committed
adding CoalesceBatches
1 parent d50d7e5 commit 02ea910

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

native/core/src/execution/planner.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ use datafusion_physical_expr::aggregate::{AggregateExprBuilder, AggregateFunctio
7070

7171
use crate::execution::shuffle::CompressionCodec;
7272
use crate::execution::spark_plan::SparkPlan;
73+
use datafusion::optimizer::OptimizerConfig;
7374
use datafusion::physical_plan::coalesce_batches::CoalesceBatchesExec;
7475
use datafusion_comet_proto::{
7576
spark_expression::{
@@ -1188,8 +1189,12 @@ impl PhysicalPlanner {
11881189
// SMJ with join filter produces lots of tiny batches
11891190
let coalesce_batches: Arc<dyn ExecutionPlan> =
11901191
Arc::new(CoalesceBatchesExec::new(
1191-
Arc::clone(&join),
1192-
self.session_ctx.state().config_options().batch_size(),
1192+
Arc::<SortMergeJoinExec>::clone(&join),
1193+
self.session_ctx
1194+
.state()
1195+
.config_options()
1196+
.execution
1197+
.batch_size,
11931198
));
11941199
Ok((
11951200
scans,

0 commit comments

Comments
 (0)