-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32511][SQL] Add dropFields method to Column class #29795
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
fqaiser94
wants to merge
18
commits into
apache:master
from
fqaiser94:SPARK-32511-dropFields-second-try
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ac149a5
implement dropFields
fqaiser94 2f16213
clean up
fqaiser94 331af59
add guard and remove ultimateStruct method
fqaiser94 650d366
minor cleanup
fqaiser94 6b301bb
implement benchmark
fqaiser94 25ff6fa
replace unresolved with illegal state exception
fqaiser94 f7dd0f4
use local variable
fqaiser94 f727fac
avoid iterating the values twice
fqaiser94 f77921d
explicitly mention noop
fqaiser94 9f3d7bc
add test to show dropFields should drop field with no name in struct
fqaiser94 430b996
4 space indentation
fqaiser94 53d83b6
use += instead of append method for consistency
fqaiser94 dffc0e8
use .queryExecution.optimizedPlan instead of .noop()
fqaiser94 2ef7bc8
benchmark both performant and non-performant way, remove unnecessary …
fqaiser94 4fe48b4
add cases we're not able to optimize well currently to specs
fqaiser94 2e9902e
better test coverage for nullable path
fqaiser94 cca6f37
fix indentation
fqaiser94 7e51f35
move UpdateFieldsBenchmark tests to ColumnExpressionSuite
fqaiser94 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
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
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.
@viirya I'm not quite done with this PR yet but I wanted to share it with you early because some of the changes I'm making in here may be helpful for #29587 (assuming this PR is accepted). Specifically, it would be possible to implement sorting of fields in a struct simply by: