impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Kornacker (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5338: Fix Kudu timestamp column default values
Date Wed, 31 May 2017 19:27:30 GMT
Marcel Kornacker has posted comments on this change.

Change subject: IMPALA-5338: Fix Kudu timestamp column default values

Patch Set 2:


could you also add tosql tests?
File be/src/exprs/timestamp-functions.h:

Line 106:   static TimestampVal TimestampFromUnixMicros(FunctionContext* context,
the other functions don't have a "Timestamp" prefix, leave it out here as well.
File be/src/runtime/timestamp-value.inline.h:

Line 46:   tm temp_tm = boost::posix_time::to_tm(temp);
i pointed this out as a potential performance problem and asked you to leave a todo with a
pointer to a code snippet. could you please add that?

have there been any perf tests that quantify the cost of these conversions?
File fe/src/main/java/org/apache/impala/analysis/

Line 271:               "cast to a default value for a TIMESTAMP column.", defaultValue_.toSql()));
i'd say "to a TIMESTAMP literal', just to be absolutely clear

Line 274:  

Line 296:               "Error converting timestamp default value: " + defaultValue_.toSql(),
so you're converting an internal exception to an analysis exception here? an analysis exception
should be actionable for the user (e.g., fix your syntax), but it doesn't look like that's
the case here.
File fe/src/main/java/org/apache/impala/util/

Line 168:    * Returns the actual value of the specified defaultValue literal. Checks that
i still don't understand what the return types could be (looks like T<>Literal, but
I need to look at the code for that).

Line 221:       throw new InternalException("Error converting timestamp expression: " +
can this happen?
File fe/src/test/java/org/apache/impala/analysis/

Line 680:   public void TestAlterTableSetCached() {
why can this go? or did it accidentally get dropped?
File tests/query_test/

Line 650:   def test_timestamp_default_value(self, cursor):
can't you do this with a simple .test file? that would be easier to read and maintain.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I655910fb4805bb204a999627fa9f68e43ea8aaf2
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Matthew Jacobs <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Matthew Jacobs <>
Gerrit-Reviewer: Thomas Tauber-Marshall <>
Gerrit-HasComments: Yes

View raw message