Skip to content

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

Merged
Dandandan merged 4 commits into
apache:masterfrom
andygrove:plan-not-df
Jan 15, 2023
Merged

[Substrait] Change API to return LogicalPlan instead of DataFrame#4896
Dandandan merged 4 commits into
apache:masterfrom
andygrove:plan-not-df

Conversation

@andygrove

@andygrove andygrove commented Jan 13, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

@waynexia @nseekhao

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

@waynexia waynexia left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

some deadcode

@alamb alamb added the substrait Changes to the substrait crate label Jan 15, 2023
@Dandandan
Dandandan merged commit 03ef500 into apache:master Jan 15, 2023
@ursabot

ursabot commented Jan 15, 2023

Copy link
Copy Markdown

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

Labels

substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants