-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23939][SQL] Add transform_keys function #22013
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
15 commits
Select commit
Hold shift + click to select a range
0a19cc4
Added Support for transform_keys function
codeatri 12e0259
Merge branch 'master' into SPARK-23939
codeatri 5806ac4
Addressed Review Commenst
codeatri 150a6a5
Additional Tests containing nulls
codeatri 9f6a8ab
nit: style
codeatri 6526630
added additional unit test
codeatri f7fd231
nit:space
codeatri 1cbaf0c
addressed review comments
codeatri bb52630
Merge branch 'master' into SPARK-23939
codeatri 621213d
fix style
codeatri 5db526b
Merge master Refactoring changes
codeatri e5d9b05
review comments
codeatri fb885f4
review comments
codeatri 58b60b2
fix unit test
codeatri 2f4943f
review
codeatri 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
Merge branch 'master' into SPARK-23939
- Loading branch information
commit bb52630dd720ecaf5f7ffe0c498d422ce60f3bb7
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,12 @@ select transform(zs, z -> aggregate(z, 1, (acc, val) -> acc * val * size(z))) as | |
| -- Aggregate a null array | ||
| select aggregate(cast(null as array<int>), 0, (a, y) -> a + y + 1, a -> a + 2) as v; | ||
|
|
||
| -- Check for element existence | ||
| select exists(ys, y -> y > 30) as v from nested; | ||
|
|
||
| -- Check for element existence in a null array | ||
| select exists(cast(null as array<int>), y -> y > 30) as v; | ||
|
|
||
| create or replace temporary view nested as values | ||
| (1, map(1,1,2,2,3,3)), | ||
| (2, map(4,4,5,5,6,6)) | ||
|
||
|
|
||
Oops, something went wrong.
You are viewing a condensed version of this merge commit. You can view the full changes here.
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.
nit: indent