[SPARK-47713][SQL][CONNECT] Fix a self-join failure#45846
Closed
zhengruifeng wants to merge 5 commits intoapache:masterfrom
Closed
[SPARK-47713][SQL][CONNECT] Fix a self-join failure#45846zhengruifeng wants to merge 5 commits intoapache:masterfrom
zhengruifeng wants to merge 5 commits intoapache:masterfrom
Conversation
zhengruifeng
commented
Apr 3, 2024
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala
Outdated
Show resolved
Hide resolved
ffcbae7 to
0124dec
Compare
cloud-fan
reviewed
Apr 3, 2024
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala
Outdated
Show resolved
Hide resolved
cloud-fan
reviewed
Apr 3, 2024
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ColumnResolutionHelper.scala
Outdated
Show resolved
Hide resolved
cloud-fan
reviewed
Apr 3, 2024
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ColumnResolutionHelper.scala
Outdated
Show resolved
Hide resolved
cloud-fan
reviewed
Apr 3, 2024
Contributor
There was a problem hiding this comment.
when this condition can be false if resolved.isEmpty is true?
Contributor
Author
There was a problem hiding this comment.
I think there are two cases:
1, analyzer rules supporting missing column resolution
2, plan id missed in some way (should be bugs)
Contributor
There was a problem hiding this comment.
Shall we still have the matched flag? The new code is confusing and I can't understand it even after reading your comment.
Member
There was a problem hiding this comment.
A comment in code would be very helpful
Contributor
Author
There was a problem hiding this comment.
ok, let me restore matched
923f046 to
b400131
Compare
zhengruifeng
commented
Apr 4, 2024
Contributor
Author
xinrong-meng
approved these changes
Apr 4, 2024
b400131 to
3aa147e
Compare
fix scala style
3aa147e to
eda211c
Compare
cloud-fan
approved these changes
Apr 8, 2024
Contributor
|
thanks, merging to master! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changes were proposed in this pull request?
update the logic to resolve column in spark connect
Why are the changes needed?
Does this PR introduce any user-facing change?
yes, above query can run successfully after this PR
This PR only affects Spark Connect, won't affect Classic Spark.
How was this patch tested?
added tests
Was this patch authored or co-authored using generative AI tooling?
no