-
Notifications
You must be signed in to change notification settings - Fork 1.9k
physical plan: add reset_plan_states , plan re-use benchmark
#19806
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
0ee1d01 to
daadb0c
Compare
daadb0c to
e28f292
Compare
alamb
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.
Thank you for this PR @askalt
I think it is great, though I have a suggestion about how to make it more concise and easy to maintain.
Also, this is a benchmark for reset_plan_states what do you think about renaming the file datafusion/physical-plan/benches/reset_plan_states.rs so the benchmark is easier to find?
| /// Returns a typical plan for the query like: | ||
| /// | ||
| /// ```sql | ||
| /// SELECT aggr1(col1) as aggr1, aggr2(col2) as aggr2 FROM t |
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.
I think it would be more future proof if you actually crated the plan from SQL rather than building up the plan manually.
That way if the way SQL is planned is changed, then the benchmark will automatically update too and I think the benchmark would be substantially shorter and easier to understand
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.
Working on it.
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.
Done. Benchmark is moved to core to be able to use physical planner.
e28f292 to
2506a7b
Compare
This patch adds a benchmark which is intended to measure overhead of actions, required to perform making an independent instance of the execution plan to re-execute it, avoiding re-planning stage. There are several typical plans that are tested, covering projection, aggregation, filtration, re-partition. Also, the function `reset_plan_states(...)` is publically exported.
2506a7b to
0e56507
Compare
alamb
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.
reset_plan_states , plan re-use benchmark
|
Thank you @askalt |

Which issue does this PR close?
PlanPropertiesredundently #19796What changes are included in this PR?
This patch adds a benchmark which is intended to measure overhead of actions, required to perform making an independent instance of the execution plan to re-execute it, avoiding re-planning stage. There are several typical plans that are tested, covering projection, aggregation, filtration, re-partition.
Are there any user-facing changes?
The function
reset_plan_states(...)is publically exported.