Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to substrait 0.3 #4895

Merged
merged 3 commits into from
Jan 17, 2023
Merged

Upgrade to substrait 0.3 #4895

merged 3 commits into from
Jan 17, 2023

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Jan 13, 2023

Which issue does this PR close?

Closes #4894

Rationale for this change

Fix CI issue with protoc

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@andygrove
Copy link
Member Author

@@ -74,6 +74,7 @@ pub fn to_substrait_plan(plan: &LogicalPlan) -> Result<Box<Plan>> {

// Return parsed plan
Ok(Box::new(Plan {
version: None, // TODO not sure what version should go here?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know either so more of a question. Is this intended to be the substrait version?? So in this context would be 0.3 you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is that this will be the version of the substrait specification (which is separate to the Rust crate version)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

substrait-io/substrait-rs#46 adds a version function that returns the version of Substrait used to build the crate. That could be used here. Or something like version_with_producer("datafusion"). Please note that the version field of a plan is required.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I filed #4949 to implement this. I would like to get this PR merged to unblock integrating this code into the main workspace

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added a link to the issue in the code comment

@waynexia
Copy link
Member

waynexia commented Jan 14, 2023

This prost upgrade reminds me that we may need to change CI in #4893. I've run cargo test in my machine against this patch and it passes.

@andygrove
Copy link
Member Author

I plan on merging this PR once CI is green unless there are objections, then I can undraft the PR to integrate datafusion-substrait with the main workspace

@andygrove andygrove merged commit 84ba3c2 into apache:master Jan 17, 2023
@andygrove andygrove deleted the substrait-0.3 branch January 17, 2023 16:06
@ursabot
Copy link

ursabot commented Jan 17, 2023

Benchmark runs are scheduled for baseline = 489a555 and contender = 84ba3c2. 84ba3c2 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to substrait 0.3
6 participants