-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Modify tests for TPCH explain plans to avoid regressions #5741
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
|
Thank you @jiangyinzuo @andygrove can you give this a look? |
| let plan = df.into_optimized_plan()?; | ||
| if !actual.is_empty() { | ||
| actual += "\n"; | ||
| if sql.starts_with("select") { |
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.
handle special query 15 which contains create view sql statement
| Ok(()) | ||
| } | ||
|
|
||
| fn create_context() -> Result<SessionContext> { |
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 fix the parameter target_partitions so that the generated plans are the same in different machines.
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 @jiangyinzuo
|
Thank you @jiangyinzuo |
Which issue does this PR close?
Closes #1377.
Rationale for this change
I modify
async fn expected_plan()to utilizeEXPLAIN ...SQL statement to generate both logical and physical plans. There are only logical plans inbenchmarks/expected-plans/*.txtbefore this commit.What changes are included in this PR?
test output files in
benchmarks/expected-plans/*.txtandasync fn expected_plan()intpch.rsAre these changes tested?
yes
Are there any user-facing changes?
no