impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Csaba Ringhofer (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5664: Unix time to timestamp conversions may crash Impala
Date Thu, 21 Sep 2017 17:29:05 GMT
Csaba Ringhofer has posted comments on this change. (

Change subject: IMPALA-5664: Unix time to timestamp conversions may crash Impala

Patch Set 2:

File be/src/runtime/timestamp-value.h:
PS5, Line 173: 
This became static to enable other functions to check whether their date is valid or not without
actually creating a TimestampValue or calling year() to generate an exception. I think it
would be better if there was a single function that does this check, so if 1400 will be changed
for some reason ( IMPALA-2009 ), there will be no need to change many parts of the code.
File be/src/runtime/timestamp-value.h:
PS2, Line 86:     }
> One purpose of FunctionContext is to be the interface back into impala's ru
I think it would be better to do the logging on the caller side, because depending on the
caller, the format for the log can be different, e.g. unix timestamp vs YYYY-MM-DD string.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I77b2f6284d3a597f57e61c17a67c959eff9e38ff
Gerrit-Change-Number: 7954
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <>
Gerrit-Reviewer: Csaba Ringhofer <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Comment-Date: Thu, 21 Sep 2017 17:29:05 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message