impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Volker (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-2521: Add clustered hint to insert statements
Date Sat, 22 Oct 2016 00:11:19 GMT
Lars Volker has posted comments on this change.

Change subject: IMPALA-2521: Add clustered hint to insert statements

Patch Set 8:


Thanks for the review, please see PS8, as well as my comment regarding expr substitution.
File fe/src/main/java/org/apache/impala/analysis/

Line 132:   private ArrayList<Expr> primaryKeyExprs_ = Lists.newArrayList();
> how about primaryKeyExprs_?

Line 517:    * expressions.
> Mention that as point 4

Line 601:         }
> Kudu (it's a proper noun)

Line 602:       }
> You also need to substitute the kuduExprs_ in InsertStmt.substituteResultEx
I added a test for this, however it also seems to work without the substitution. What am I
missing? Also, are c_i and k_j particular columns? I tried reordering them, but it still does
not fail when omitting the substitution.

Line 604:       if (matchFound && table_ instanceof KuduTable) {
> add helper KuduTable.isPrimaryKeyColumn()
Done, though after finding that List supports contains I might as well inline it as it is
just one line. Inline or Keep?
File fe/src/main/java/org/apache/impala/planner/

Line 499:    * (key columns for Kudu tables), so that partitions can be written sequentially
in the
> Kudu tables
File testdata/workloads/functional-planner/queries/PlannerTest/kudu.test:

Line 248: insert into table functional_kudu.alltypes /*+ clustered */
> shuffle/noshuffle don't do anything for Kudu tables, so I don't think this 

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I412153bd8435d792bd61dea268d7a3b884048f14
Gerrit-PatchSet: 8
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Lars Volker <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-HasComments: Yes

View raw message