-
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
Fix date_diff() bug across time zone boundaries #11053
Conversation
✅ Deploy Preview for meta-velox canceled.
|
This pull request was exported from Phabricator. Differential Revision: D63159202 |
This pull request was exported from Phabricator. Differential Revision: D63159202 |
) Summary: Pull Request resolved: facebookincubator#11053 Date diff calculation for timestamp with time zone types need to be performed in the time zone of the first parameter to follow Presto's semantic. Timestamp calculation normalized to UTC may not return the same result if the interval crosses a daylight savings time. Differential Revision: D63159202
0c7546d
to
9907f4b
Compare
) Summary: Pull Request resolved: facebookincubator#11053 Date diff calculation for timestamp with time zone types need to be performed in the time zone of the first parameter to follow Presto's semantic. Timestamp calculation normalized to UTC may not return the same result if the interval crosses a daylight savings time. Differential Revision: D63159202
This pull request was exported from Phabricator. Differential Revision: D63159202 |
9907f4b
to
4009e6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks Pedro !
This pull request has been merged in 4e45bc5. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
) Summary: Pull Request resolved: facebookincubator#11053 Date diff calculation for timestamp with time zone types need to be performed in the time zone of the first parameter to follow Presto's semantic. Timestamp calculation normalized to UTC may not return the same result if the interval crosses a daylight savings time. Reviewed By: amitkdutta, kgpai Differential Revision: D63159202 fbshipit-source-id: fb8eaf10dc6e8ab14e8eb635ff64ce2be4939823
Summary:
Date diff calculation for timestamp with time zone types need to be
performed in the time zone of the first parameter to follow Presto's semantic.
Timestamp calculation normalized to UTC may not return the same result if the
interval crosses a daylight savings time.
Differential Revision: D63159202