Skip to content
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

Add support for custom comparison in Presto's arrays intersect/except/overlap UDFs #11164

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kevinwilfong
Copy link
Contributor

Summary:
Update Presto's array_intersect, array_except, and array_overalp UDFs to work with
types that provide custom comparison. We can reuse the implementation of ValueSet
for complex types, since that just uses the compare and hash functions provided by
the Vector. With #11022 these just
invoke the Type's custom implementations of these functions.

Differential Revision: D63851047

Kevin Wilfong added 4 commits October 3, 2024 11:53
…kincubator#11141)

Summary:

With facebookincubator#11136 array_min and array_max
just work with TimestampWithTimezone.

Adding unit tests to verify this and ensure it doesn't break in the future.

Differential Revision: D63708110
…r#11142)

Summary:

With facebookincubator#11136 array_sort just works with
TimestampWithTimezone.

Adding unit tests to verify this and ensure it doesn't break in the future.

Reviewed By: bikramSingh91

Differential Revision: D63711984
…kincubator#11143)

Summary:

Update Presto's array_distinct UDF to work with types that provide custom
comparison.  We can reuse the implementation of ValueSet for complex types, since
that just uses the compare and hash functions provided by the Vector.  With
facebookincubator#11022 these just invoke the Type's
custom implementations of these functions.

Reviewed By: xiaoxmeng

Differential Revision: D63719542
…/overlap UDFs

Summary:
Update Presto's array_intersect, array_except, and array_overalp UDFs to work with
types that provide custom comparison.  We can reuse the implementation of ValueSet
for complex types, since that just uses the compare and hash functions provided by
the Vector.  With facebookincubator#11022 these just
invoke the Type's custom implementations of these functions.

Differential Revision: D63851047
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63851047

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Oct 3, 2024
Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit f736322
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66fee82fbf5d300008dc537b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants