-
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.
Fix Presto's date_diff UDF with TimestampAndTimeZone and DST (#11380)
Summary: Pull Request resolved: #11380 Presto Java's date_diff UDF respects DST for units greater than or equal to a day, but for units less than a day computes the diff on the system time (GMT). This means for units less than a day date_diff with TimestampWithTimeZone cannot compute the difference of the local times. It needs to use system time to be consistent. Note that the for units greater than or equal to a day, this does not apply, and we should continue to use the local time to compute the difference. This is analogous to the change made to date_add in #11353 Reviewed By: xiaoxmeng Differential Revision: D65165953 fbshipit-source-id: 7817ffd31c9e078c3078e861fe3813135bf0f2b8
- Loading branch information
1 parent
1c0c533
commit 7377bc8
Showing
3 changed files
with
193 additions
and
4 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
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