forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix timezone conversion bug in date_trunc (facebookincubator#10183)
Summary: Pull Request resolved: facebookincubator#10183 date_trunc was incorrectly handling truncations during the daylight savings transition. Since conversions during these transitions may be ambiguous, Presto semantic is to always take the earliest UTC timestamp. For truncations that should happen in the "latest" side of an ambiguous conversion, converting to UTC and back would result in the truncation being done is the earliest version of that timestamp. The bug only applied to "minute" and "hour" truncations, naturally. Reviewed By: kevinwilfong, mbasmanova Differential Revision: D58467148 fbshipit-source-id: dedaff4e599516a00c13dd9f372e6a6b547c2975
- Loading branch information
1 parent
351d0fc
commit 8c9d2d5
Showing
2 changed files
with
33 additions
and
5 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