-
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.
Provide custom comparison functions in TimestampWithTimezone
Summary: #11021 introduced the ability for custom types to provide their own compare and hash semantics. This change updates TimestampWithTimezone to take advantage of this new feature. It is represented as a 64-bit integer, but only the top 42 bits of the value, which represent the millis since epoch in UTC, should be used for the purposes of comparison and hashing. The bottom 12 bits which represent the timezone should be ignored. Differential Revision: D62906383
- Loading branch information
1 parent
88043f0
commit 311f2cb
Showing
2 changed files
with
99 additions
and
26 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