-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Provide custom comparison functions in TimestampWithTimezone #11025
Provide custom comparison functions in TimestampWithTimezone #11025
Conversation
This pull request was exported from Phabricator. Differential Revision: D62906383 |
✅ Deploy Preview for meta-velox canceled.
|
This pull request was exported from Phabricator. Differential Revision: D62906383 |
…kincubator#11025) Summary: Pull Request resolved: facebookincubator#11025 facebookincubator#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. Reviewed By: pansatadru Differential Revision: D62906383
311f2cb
to
90a5b04
Compare
…kincubator#11025) Summary: Pull Request resolved: facebookincubator#11025 facebookincubator#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. Reviewed By: pansatadru Differential Revision: D62906383
This pull request was exported from Phabricator. Differential Revision: D62906383 |
90a5b04
to
bec8701
Compare
This pull request has been merged in 9e1280a. |
Conbench analyzed the 1 benchmark run on commit There were 3 benchmark results indicating a performance regression:
The full Conbench report has more details. |
…kincubator#11025) Summary: Pull Request resolved: facebookincubator#11025 facebookincubator#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. Reviewed By: pansatadru Differential Revision: D62906383 fbshipit-source-id: 93c5c4e9a1f8bf716d3b804f3bd7019d3b2b0ad3
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