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-4166: Add SORT BY sql clause
Date Fri, 07 Apr 2017 22:48:40 GMT
Alex Behm has posted comments on this change.

Change subject: IMPALA-4166: Add SORT BY sql clause

Patch Set 9:

File fe/src/main/java/org/apache/impala/analysis/

Line 85:   public static List<Integer> analyzeSortByColumns(List<String> sortByCols,
Do we need all the public APIs? Probably not a hug deal, but I worry about the N^2 loop in
here. Table and KuduTable provide efficient ways for checking whether a column is a partition
column or primary key.

Line 114:       if (!foundColumn) {
Does this mean we need 2 ALTER statements to drop/rename a column?

Line 115:         throw new AnalysisException(String.format("Could not find SORT BY column
'%s' " +
Do we have a test for this?
File fe/src/main/java/org/apache/impala/catalog/

Line 458:   public void setNumClusteringCols(int n) { numClusteringCols_ = n; }
File testdata/workloads/functional-planner/queries/PlannerTest/insert-sort-by.test:

Line 170: # IMPALA-4166: sort by columns are correct when using a partial column permutation.
What if neither bool_col or int_col are mentioned in the column permutation? Will we still
create a sort node?

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I08834f38a941786ab45a4381c2732d929a934f75
Gerrit-PatchSet: 9
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Lars Volker <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Thomas Tauber-Marshall <>
Gerrit-HasComments: Yes

View raw message