impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quanlong Huang (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-9529: Fix multi-tuple predicates not assigned in column masking
Date Tue, 07 Apr 2020 07:43:43 GMT
Quanlong Huang has posted comments on this change. (

Change subject: IMPALA-9529: Fix multi-tuple predicates not assigned in column masking

Patch Set 4:


Thanks for your review, Aman!

Addressed Aman's comment: added a new field 'maskedByTuple_' in TupleDescriptor and check
it in JoinNode.init().
File fe/src/main/java/org/apache/impala/analysis/
PS3, Line 1493:     if (node instanceof JoinNode) {
> For adding the marker I thought you would just need to add a boolean 'isAss
I'm afraid that doesn't work since JoinNode.init() is calling this method to update 'conjuncts_'.
The call path is:

  JoinNode.init() -> PlanNode.assignConjuncts() -> analyzer.getUnassignedConjuncts(PlanNode)

We can only use these codes after 'conjuncts_' is updated.
File fe/src/main/java/org/apache/impala/planner/
PS3, Line 224:     for (TupleDescriptor tuple : analyzer.materializeSlots(conjuncts_)) {
> Yeah, if you can add a Preconditions check that would be good.
Done. Slightly fixed the comment that masked tuples involved in multi-tuple predicates could
be affected.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I12f1b59733db5a88324bb0c16085f565edc306b3
Gerrit-Change-Number: 15654
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <>
Gerrit-Reviewer: Aman Sinha <>
Gerrit-Reviewer: Csaba Ringhofer <>
Gerrit-Reviewer: Fang-Yu Rao <>
Gerrit-Reviewer: Impala Public Jenkins <>
Gerrit-Reviewer: Quanlong Huang <>
Gerrit-Reviewer: Vihang Karajgaonkar <>
Gerrit-Comment-Date: Tue, 07 Apr 2020 07:43:43 +0000
Gerrit-HasComments: Yes

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