impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4705, IMPALA-4779, IMPALA-4780: Fix some Expr bugs with codegen
Date Mon, 23 Jan 2017 19:09:36 GMT
Tim Armstrong has posted comments on this change.

Change subject: IMPALA-4705, IMPALA-4779, IMPALA-4780: Fix some Expr bugs with codegen

Patch Set 2:


Looking better, just some minor things
File be/src/codegen/

Line 194:         if (IsDefinedInImpalad(fn_name)) continue;
I still don't entirely understand this. I understand why we don't want to materialize if it's
defined in the Impala daemon, but I don't understand why we include gv -> fn mappings if
the function isn't defined in the impala daemon, but not if the function is defined in the
impala daemon. I don't see anything in the comment for 'callee_map_' that explains this either.
File be/src/exprs/

Line 63: DECLARE_bool(fe_support_disable_codegen);
I don't think we want to expose this as a command-line option, do we?
File be/src/exprs/

Line 57
> Without defining MIN_YEAR as a compilation constant, there isn't much to be
I agree it probably doesn't matter too much, but we should generally just put the constants
in header files so that we're consistent with the pattern.
File be/src/exprs/timestamp-functions.h:

Line 42:   static const int64_t MAX_YEAR_INTERVAL;
I think we should define the constant values here, so that they can be inlined in any source

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I40fdb035a565ae2f9c9fbf4db48a548653ef7608
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Michael Ho <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message