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

[Substrait] Change API to return LogicalPlan instead of DataFrame #4896

Merged
merged 4 commits into from
Jan 15, 2023

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Jan 13, 2023

Which issue does this PR close?

Part of #4897

Rationale for this change

As suggested by @nseekhao, given that to_substrait_rel() takes LogicalPlan and returns Substrait Rel, it would be better if from_subtrait_rel() takes Substrait Rel and returns LogicalPlan rather than DataFrame.

Note that this was originally datafusion-contrib/datafusion-substrait#35

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@andygrove andygrove changed the title Change API to return LogicalPlan instead of DataFrame [Substrait] Change API to return LogicalPlan instead of DataFrame Jan 13, 2023
@andygrove andygrove marked this pull request as ready for review January 13, 2023 17:08
@andygrove
Copy link
Member Author

@waynexia @nseekhao

@andygrove andygrove mentioned this pull request Jan 13, 2023
5 tasks
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @andygrove

Comment on lines +44 to +45
// #[allow(deprecated)]
// let plan = ctx.optimize(&plan)?;
Copy link
Member

Choose a reason for hiding this comment

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

some deadcode

@Dandandan Dandandan merged commit 03ef500 into apache:master Jan 15, 2023
@ursabot
Copy link

ursabot commented Jan 15, 2023

Benchmark runs are scheduled for baseline = 2630fd7 and contender = 03ef500. 03ef500 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

@andygrove andygrove deleted the plan-not-df branch January 16, 2023 14:55
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.

5 participants