-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-35194][SQL] Refactor nested column aliasing for readability #32301
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
karenfeng
wants to merge
22
commits into
apache:master
from
karenfeng:refactor-nested-column-aliasing
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
37ac8a9
Refactor NestedColumnAliasing
karenfeng 9656899
Continue cleanup
karenfeng e44c683
Add comments
karenfeng a95360a
Split out Option[Map]
karenfeng 6cfd826
Merge from master
karenfeng cfa0273
Merge from master
karenfeng c0f839c
Revert "Merge from master"
karenfeng a2759cc
Revert "Merge from master"
karenfeng e48cf77
Merge branch 'master' of https://github.com/apache/spark into refacto…
karenfeng c4587c1
Remove unused fns
karenfeng f48b376
Address comments
karenfeng 69ca24e
Indentation
karenfeng 9d41de6
Try to fix compilation
karenfeng e47a441
mutable.ArrayBuffer toSeq
karenfeng d74b569
Change alias name
karenfeng 351e74a
Address commen ts
karenfeng c7e5c5a
Fixup
karenfeng f49663c
Switch away from mapValues
karenfeng 80fa5c3
Try to fix build
karenfeng 31f8bd0
Address some comments
karenfeng 83e2611
Distinct-ify Attributes by exprId
karenfeng 8a29e94
Only add ExtractValue if 1 reference
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
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
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
Oops, something went wrong.
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.
instead of adding a new API, can the caller side just do
AttributeMap(map.toSeq)?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.
That would work as well, but
AttributeMap(kvs = map.toSeq)will end up calling.toMapdown the line.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.
Ah got it, this is more efficient