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 tests for Presto's map_subset UDF with TimestampWithTimezones #11242

Closed

Conversation

kevinwilfong
Copy link
Contributor

Summary:
Presto's map_subset implementation for Generic types uses the hash and equals
functions implemented for GenericViews. For TimestampWithTImeZone this
recursively calls these functions on the CustomTypeWithCustomComparisonView the
GenericView wraps, which supports custom comparison operators. So this UDF works
as is with the recent changes earlier in this stack.

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

Differential Revision: D64262952

Kevin Wilfong added 2 commits October 11, 2024 13:50
…nt_at UDF (facebookincubator#11239)

Summary:

Update SubscriptUtil to work with types that provide custom comparison. We can
reuse the implementation for complex types, since that just uses the compare
function provided by the Vector. With
facebookincubator#11022 this just invokes the Type's
custom implementation.

Since they share the same underlying code this makes both map subscript and
the element_at UDF work with custom comparison.

Reviewed By: xiaoxmeng

Differential Revision: D64256363
Summary:
Presto's map_subset implementation for Generic types uses the hash and equals
functions implemented for GenericViews.  For TimestampWithTImeZone this
recursively calls these functions on the CustomTypeWithCustomComparisonView the
GenericView wraps, which supports custom comparison operators. So this UDF works
as is with the recent changes earlier in this stack.

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

Differential Revision: D64262952
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 11, 2024
@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Oct 11, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 7a958d1
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67098faeb982fd0008a3f8b7

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Oct 11, 2024
…cebookincubator#11242)

Summary:

Presto's map_subset implementation for Generic types uses the hash and equals
functions implemented for GenericViews.  For TimestampWithTImeZone this
recursively calls these functions on the CustomTypeWithCustomComparisonView the
GenericView wraps, which supports custom comparison operators. So this UDF works
as is with the recent changes earlier in this stack.

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

Reviewed By: xiaoxmeng

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

This pull request has been merged in adbebfd.

Copy link

Conbench analyzed the 1 benchmark run on commit adbebfda.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants