Skip to content

Commit dd0f9ee

Browse files
aditanaseadragomir
authored andcommitted
[HSTACK] - fix CoalescePartitionsExecNode proto
1 parent 0cb9914 commit dd0f9ee

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

datafusion/proto/proto/datafusion.proto

+1
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@ message CoalesceBatchesExecNode {
12131213

12141214
message CoalescePartitionsExecNode {
12151215
PhysicalPlanNode input = 1;
1216+
optional uint32 fetch = 2;
12161217
}
12171218

12181219
message PhysicalHashRepartition {

datafusion/proto/src/generated/pbjson.rs

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/proto/src/generated/prost.rs

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/proto/src/physical_plan/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ impl AsExecutionPlan for protobuf::PhysicalPlanNode {
312312
PhysicalPlanType::Merge(merge) => {
313313
let input: Arc<dyn ExecutionPlan> =
314314
into_physical_plan(&merge.input, registry, runtime, extension_codec)?;
315-
Ok(Arc::new(CoalescePartitionsExec::new(input)))
315+
Ok(CoalescePartitionsExec::new(input)
316+
.with_fetch(merge.fetch.map(|f| f as usize)).unwrap())
316317
}
317318
PhysicalPlanType::Repartition(repart) => {
318319
let input: Arc<dyn ExecutionPlan> = into_physical_plan(
@@ -1736,6 +1737,7 @@ impl AsExecutionPlan for protobuf::PhysicalPlanNode {
17361737
physical_plan_type: Some(PhysicalPlanType::Merge(Box::new(
17371738
protobuf::CoalescePartitionsExecNode {
17381739
input: Some(Box::new(input)),
1740+
fetch: exec.fetch().map(|n| n as u32),
17391741
},
17401742
))),
17411743
});

0 commit comments

Comments
 (0)