Skip to content

Commit 13feaa6

Browse files
committed
rebase master
1 parent 23965af commit 13feaa6

File tree

5 files changed

+47
-35
lines changed

5 files changed

+47
-35
lines changed

datafusion/proto/proto/datafusion.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ message AvroScanExecNode {
11281128
enum PartitionMode {
11291129
COLLECT_LEFT = 0;
11301130
PARTITIONED = 1;
1131+
AUTO = 2;
11311132
}
11321133

11331134
message HashJoinExecNode {

datafusion/proto/src/generated/pbjson.rs

Lines changed: 37 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/proto/src/generated/prost.rs

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ impl AsExecutionPlan for PhysicalPlanNode {
521521
let partition_mode = match partition_mode {
522522
protobuf::PartitionMode::CollectLeft => PartitionMode::CollectLeft,
523523
protobuf::PartitionMode::Partitioned => PartitionMode::Partitioned,
524+
protobuf::PartitionMode::Auto => PartitionMode::Auto,
524525
};
525526
Ok(Arc::new(HashJoinExec::try_new(
526527
left,
@@ -810,6 +811,7 @@ impl AsExecutionPlan for PhysicalPlanNode {
810811
let partition_mode = match exec.partition_mode() {
811812
PartitionMode::CollectLeft => protobuf::PartitionMode::CollectLeft,
812813
PartitionMode::Partitioned => protobuf::PartitionMode::Partitioned,
814+
PartitionMode::Auto => protobuf::PartitionMode::Auto,
813815
};
814816

815817
Ok(protobuf::PhysicalPlanNode {

datafusion/proto/src/physical_plan/to_proto.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,11 @@ impl TryFrom<&FileScanConfig> for protobuf::FileScanExecConf {
452452
.map(|n| *n as u32)
453453
.collect(),
454454
schema: Some(conf.file_schema.as_ref().try_into()?),
455-
table_partition_cols: conf.table_partition_cols.to_vec(),
455+
table_partition_cols: conf
456+
.table_partition_cols
457+
.iter()
458+
.map(|x| x.0.clone())
459+
.collect::<Vec<_>>(),
456460
object_store_url: conf.object_store_url.to_string(),
457461
})
458462
}

0 commit comments

Comments
 (0)