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

Provide custom comparison functions in TimestampWithTimezone #11025

Closed

Conversation

kevinwilfong
Copy link
Contributor

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

@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 Sep 17, 2024
@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Sep 17, 2024

Deploy Preview for meta-velox canceled.

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

@facebook-github-bot
Copy link
Contributor

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

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Sep 25, 2024
…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
…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
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9e1280a.

Copy link

Conbench analyzed the 1 benchmark run on commit 9e1280a7.

There were 3 benchmark results indicating a performance regression:

The full Conbench report has more details.

athmaja-n pushed a commit to athmaja-n/velox that referenced this pull request Jan 10, 2025
…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
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