Skip to content

Add support for map_key_exists#21966

Merged
NikhilCollooru merged 1 commit intoprestodb:masterfrom
jainavi17:map_key_exists
Mar 22, 2024
Merged

Add support for map_key_exists#21966
NikhilCollooru merged 1 commit intoprestodb:masterfrom
jainavi17:map_key_exists

Conversation

@jainavi17
Copy link
Contributor

UDF to return whether a key exists in the given map

Test plan

Added unit tests.
Build successfully using the following terminal command

  • ./mvnw clean install -Dtest=TestMapKeyExists -fn -pl presto-main
== RELEASE NOTES ==

General Changes
- Add function :func:`map_key_exists`

@jainavi17 jainavi17 requested a review from a team as a code owner February 19, 2024 22:08
@jainavi17 jainavi17 requested a review from presto-oss February 19, 2024 22:08
@steveburnett
Copy link
Contributor

Please add documentation for the new function, following the Review and Commit guidelines.

kaikalur
kaikalur previously approved these changes Feb 20, 2024
@NikhilCollooru
Copy link
Contributor

NikhilCollooru commented Feb 20, 2024

LGTM. Please add tests as suggested by Sreeni and push the changes.

@github-actions
Copy link

github-actions bot commented Mar 4, 2024

Codenotify: Notifying subscribers in CODENOTIFY files for diff b23ba09...6b95bd3.

Notify File(s)
@steveburnett presto-docs/src/main/sphinx/functions/map.rst

@jainavi17
Copy link
Contributor Author

PR updated.
cc @steveburnett , @NikhilCollooru , @kaikalur

kaikalur
kaikalur previously approved these changes Mar 4, 2024
Copy link
Contributor

@steveburnett steveburnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the documentation! I had minor formatting and rephrasing suggestions. Let me know what you think, please.

NikhilCollooru
NikhilCollooru previously approved these changes Mar 4, 2024
@jainavi17
Copy link
Contributor Author

@steveburnett Thanks for reviewing. All the comments have been addressed.

steveburnett
steveburnett previously approved these changes Mar 11, 2024
Copy link
Contributor

@steveburnett steveburnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (docs)

Pull updated branch, local build of docs, looks good. Thanks!

UDF to return whether a key exists in the given map
@jainavi17
Copy link
Contributor Author

@tdcmeehan if you could take a look at the PR please. TIA.

@tdcmeehan tdcmeehan requested a review from rschlussel March 18, 2024 13:13
@jainavi17
Copy link
Contributor Author

@kaikalur, @NikhilCollooru can we merge this PR please.

@NikhilCollooru NikhilCollooru merged commit 754171d into prestodb:master Mar 22, 2024
@wanglinsong wanglinsong mentioned this pull request May 1, 2024
48 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants