-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for Presto's map_top_n/map_top_n_keys UDFs with TimestampWi…
…thTimezones (#11243) Summary: Pull Request resolved: #11243 Presto's map_top_n and map_top_n_keys implementations use 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 these UDFs work 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: amitkdutta Differential Revision: D64267032 fbshipit-source-id: b7fdd725cae5918c98a9cb0a6d053966991f00c5
- Loading branch information
1 parent
adbebfd
commit 6cc4152
Showing
2 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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