Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions datafusion/substrait/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ rust-version = "1.62"
[dependencies]
async-recursion = "1.0"
datafusion = { version = "16.0.0", path = "../core" }
prost = "0.9"
prost-types = "0.9"
substrait = "0.2"
prost = "0.11"
prost-types = "0.11"
substrait = "0.3"
tokio = "1.17"

[build-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions datafusion/substrait/src/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub fn to_substrait_plan(plan: &LogicalPlan) -> Result<Box<Plan>> {

// Return parsed plan
Ok(Box::new(Plan {
version: None, // TODO: https://github.com/apache/arrow-datafusion/issues/4949
extension_uris: vec![],
extensions: function_extensions,
relations: plan_rels,
Expand Down Expand Up @@ -115,6 +116,7 @@ pub fn to_substrait_rel(
r#struct: None,
}),
filter: None,
best_effort_filter: None,
projection: Some(MaskExpression {
select: Some(StructSelect { struct_items }),
maintain_singular_struct: false,
Expand Down Expand Up @@ -367,6 +369,7 @@ pub fn to_substrait_agg_measure(
},
phase: substrait::protobuf::AggregationPhase::Unspecified as i32,
args: vec![],
options: vec![],
}),
filter: match filter {
Some(f) => Some(to_substrait_rex(f, schema, extension_info)?),
Expand Down Expand Up @@ -447,6 +450,7 @@ pub fn make_binary_op_scalar_func(
],
output_type: None,
args: vec![],
options: vec![],
})),
}
}
Expand Down