-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Execute LogicalPlans after building for TPCH Benchmarks #3290
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
Conversation
- tpch.rs::benchmark_datafusion now executes LogicalPlan immediately after building - tpch.rs::run_query now executes LogicalPlan immediately after building Resolves #3273
|
@andygrove @mingmwang Would one of you mind giving this a quick look? If we want to keep the output defined in the execute_query method, I could also rewrite the logic defined in create_logical_plans to create plans one at a time. Otherwise, I |
Codecov Report
@@ Coverage Diff @@
## master #3290 +/- ##
==========================================
- Coverage 85.92% 85.92% -0.01%
==========================================
Files 294 294
Lines 53469 53467 -2
==========================================
- Hits 45945 45943 -2
Misses 7524 7524
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
- Removed unused include of LogicalPlan module in tpch.rs
andygrove
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @DaltonModlin
|
Benchmark runs are scheduled for baseline = 7aed4d6 and contender = 3effee8. 3effee8 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
|
This is a nice solution -- thanks @DaltonModlin |
Resolves #3273
Which issue does this PR close?
Closes #3273
Rationale for this change
In the case of TPCH Query 15, a LogicalPlan is created for the first part of the query (creating the view), but a LogicalPlan for the second part of the query cannot be constructed before executing the first LogicalPlan. This is because the view cannot be found in the session context until its LogicalPlan is executed.
What changes are included in this PR?
Update tpch.rs to generate a LogicalPlan, and then immediately execute it before generating the next LogicalPlan for both
tpch.rs::benchmark_datafusionandtpch.rs::run_queryAre there any user-facing changes?
No.