impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-3586: Implement union passthrough
Date Fri, 17 Mar 2017 05:51:12 GMT
Alex Behm has posted comments on this change.

Change subject: IMPALA-3586: Implement union passthrough

Patch Set 17:


I'm pretty happy with the change. Only minor comment/naming issue left to fix.
Commit Message:

Line 19: A new query option DISABLE_UNION_PASSTHROUGH was added in this patch
No more query option.
File be/src/exec/union-node.h:

Line 32: class RuntimeState;

Line 70:   /// evaluating its exprs.
Just or clarity it might help to spell out what its value is when all children are materialized
and when no children are materialized

Line 71:   int first_materialized_child_idx_;
make const and set in c'tor

Line 100:   /// call on the child. Sets 'passthrough_todo_' to false when all passthrough
update comments to not mention 'todo'
File fe/src/main/java/org/apache/impala/planner/

Line 77:   // Index of the first non-passthrough child; i.e. a child that needs materializing
Shrink to: // Index of the first non-passthrough child.

Comment says it all :). The class comment already explains what passthrough is

Line 183:    * Re-order the union's operands such that the passthrough operands come before
I'd say the main purpose of this function is to compute passthrough. The re-ordering is secondary.
So how about calling this computePassthrough().

Would also be good to mention that we reorder based on passthrough mostly for simplifying
the BE implementation.

Line 190:       isChildPassthrough.add(computePassthrough(
You could rename this computePassthrough() to isChildPassthrough()

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia8f6d5062724ba5b78174c3227a7a796d10d8416
Gerrit-PatchSet: 17
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Taras Bobrovytsky <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Taras Bobrovytsky <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message