-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-34527][SQL] Resolve duplicated common columns from USING/NATURAL JOIN #31666
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
1c5ab03
Only use metadata columns for resolution as last resort
karenfeng 2fe733f
Resolve deduplicated common columns in NATURAL/USING JOIN with hidden…
karenfeng 2c261bb
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 80beda8
Fix behavior in Scala
karenfeng e1719d3
Fix nested expression
karenfeng 6fa70ba
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 0ba1916
Address comments
karenfeng 2b7e730
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 0c116a5
Push SQL output
karenfeng bf87f55
Re-do changes
karenfeng b5dc44f
Fixup tag
karenfeng 6e32b3d
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 7c3f5df
Add another failing test
karenfeng 181751a
Merge add metadata and resolve missing references
karenfeng ad5e824
Resolve down to avoid prematurely projecting out
karenfeng e36e853
Remove printlns
karenfeng db44c53
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 73b7c8a
Clean up
karenfeng 1eb01e2
Style fixup
karenfeng 9fd2490
Formatting fix
karenfeng f5cc3ae
Address comments
karenfeng fa7207e
Metadata output should be empty by default
karenfeng 7af12ae
Clean up
karenfeng 07f9ad5
Always resolve with metadata
karenfeng c474745
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 0f267e7
Revert accidental metadata changes
karenfeng ed0270c
Revert DatasourceV2SQLSuite
karenfeng 66ad572
Revert unneeded style changes
karenfeng fc3b16d
Revert accidental metadata output change
karenfeng f665030
Add childrens' hidden output to Project metadataOutput
karenfeng 85b81b1
Retrigger tests
karenfeng eab7964
Add comments
karenfeng 44ee9f8
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng c84f396
Address comments and fix propagation through Projects
karenfeng 0fe04a2
Retrigger tests
karenfeng c7c3df6
Retrigger tests
karenfeng b1bf28d
Retrigger tests
karenfeng 47be66d
Wording
karenfeng 8c5144e
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 333a815
propagate hidden columns from nested NATURAL/USING JOINs
karenfeng 49de5c5
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng 9e62d7d
Retrigger tests
karenfeng 446d4bc
address comments
karenfeng 8f70c2d
Merge branch 'master' of https://github.com/apache/spark into spark-3…
karenfeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add childrens' hidden output to Project metadataOutput
Signed-off-by: Karen Feng <[email protected]>
- Loading branch information
commit f665030c32af34b2d865d1c40e0da1bdc302741c
There are no files selected for viewing
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
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.
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 needed to propagate hidden columns through nested Projections (eg. multiple natural joins).
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.
Do we have an example query? It's a bit weird that metadata columns can be propagated through project.
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 was used in
natural-join.sql:Which would otherwise fail to expand
nt2.*to include the key column.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.
Unfortunately, this also breaks the ordering in
udf/postgreSQL/udf-join.sql.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 changed this so hidden output are only propagated if a Project already has hidden output. This allows us to propagate hidden output through nested NATURAL/USING JOINs.