-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42465][CONNECT] ProtoToPlanTestSuite should use analyzed plans instead of parsed plans. #40056
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
| } | ||
|
|
||
| override def toString: String = target.map(_ + ".").getOrElse("") + "*" | ||
| override def toString: String = target.map(_.mkString("", ".", ".")).getOrElse("") + "*" |
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.
Just wondering if this will be a kind of breaking change that some users use toString already to match plans, etc.
cc @cloud-fan
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.
this is already merged code. I hope they don't rely on this because moving from 2.12 to 2.13 would break their code.
# Conflicts: # connector/connect/common/src/test/resources/query-tests/explain-results/column_as_multi.explain # connector/connect/common/src/test/resources/query-tests/explain-results/column_star_with_target.explain # connector/connect/common/src/test/resources/query-tests/explain-results/join_inner_using_multiple_col_array.explain # connector/connect/common/src/test/resources/query-tests/explain-results/join_inner_using_multiple_col_seq.explain # connector/connect/common/src/test/resources/query-tests/explain-results/join_inner_using_single_col.explain # connector/connect/common/src/test/resources/query-tests/explain-results/join_using_multiple_col_array.explain # connector/connect/common/src/test/resources/query-tests/explain-results/join_using_multiple_col_seq.explain # connector/connect/common/src/test/resources/query-tests/explain-results/join_using_single_col.explain
amaliujia
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
|
For the reviews, I have manually tested this with 2.13. |
|
Alright merging this. |
… instead of parsed plans ### What changes were proposed in this pull request? This makes `ProtoToPlanTestSuite` use analyzed plans instead of parsed plans. ### Why are the changes needed? This is to increase the fidelity of the `ProtoToPlanTestSuite`, especially since we are going to be adding functions. Functions are special because the spark connect planner leaves them unresolved, the actual binding only happens in the analyzer. Without running the analyzer we would not know if the bindings are correct. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? It is a test change. Closes #40056 from hvanhovell/SPARK-42465. Authored-by: Herman van Hovell <herman@databricks.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 64aa84b) Signed-off-by: Herman van Hovell <herman@databricks.com>
Thank you so much, @hvanhovell ! |
… instead of parsed plans ### What changes were proposed in this pull request? This makes `ProtoToPlanTestSuite` use analyzed plans instead of parsed plans. ### Why are the changes needed? This is to increase the fidelity of the `ProtoToPlanTestSuite`, especially since we are going to be adding functions. Functions are special because the spark connect planner leaves them unresolved, the actual binding only happens in the analyzer. Without running the analyzer we would not know if the bindings are correct. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? It is a test change. Closes apache#40056 from hvanhovell/SPARK-42465. Authored-by: Herman van Hovell <herman@databricks.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 64aa84b) Signed-off-by: Herman van Hovell <herman@databricks.com>
What changes were proposed in this pull request?
This makes
ProtoToPlanTestSuiteuse analyzed plans instead of parsed plans.Why are the changes needed?
This is to increase the fidelity of the
ProtoToPlanTestSuite, especially since we are going to be adding functions. Functions are special because the spark connect planner leaves them unresolved, the actual binding only happens in the analyzer. Without running the analyzer we would not know if the bindings are correct.Does this PR introduce any user-facing change?
No
How was this patch tested?
It is a test change.