impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Apple (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4546: Fix Moscow timezone conversion after 2014
Date Mon, 13 Feb 2017 17:06:09 GMT
Jim Apple has posted comments on this change.

Change subject: IMPALA-4546: Fix Moscow timezone conversion after 2014

Patch Set 1:

File be/src/exprs/

Line 3588:   // IMPALA-4209: Moscow time change in 2011.
Moscow could use a test on its own, rather than adding so many lines to TimestampFunctions.

PS1, Line 3590: cast(from_utc_timestamp('2010-10-30 22:59:00', "
              :       "'Europe/Moscow') as string)
This could be turned into a template of calling TestStringValue with "cast(to_utc_timestamp('"
and "'Europe/Moscow') as string)" appearing just once in this file to make reading what each
 test is supposed to do easier.

Line 3596:   TestIsNull("cast(to_utc_timestamp('2010-10-31 02:00:00', "
Each one of these lines could use a short comment like "spring forward into DST, so 2am to
3am did not exist" or "TZs with ST/DST transitions were discontiguous on this region"
File be/src/exprs/

PS1, Line 194: January 19, 1992 
What about in 1991?
File be/src/exprs/timezone_db.h:

PS1, Line 41: "tz"
'tz', because the parameter tz is a std::string and so "tz" is a valid value of 'tz'.

Line 45:   /// Moscow timezone UTC+3 with DST, for use before 27 March 2011.
Between 27 March 2011 and 26 October 2014, which timezone was Moscow in?

PS1, Line 48:  October 26 2014
"26 October 2014" for parallelism with above comment.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Id6e3f2c9f6ba29749a26bc1087e664637bc02528
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Taras Bobrovytsky <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Jim Apple <>
Gerrit-Reviewer: Matthew Jacobs <>
Gerrit-HasComments: Yes

View raw message