Shant Hovsepian has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/16112 )

Change subject: IMPALA-9897: GROUPING SETS/CUBE/ROLLUP parsing and analysis
......................................................................


Patch Set 10: Code-Review+1

(2 comments)

LGTM, nice approach of keeping the groupingExprs_ in the select stmt.

http://gerrit.cloudera.org:8080/#/c/16112/10/fe/src/main/cup/sql-parser.cup
File fe/src/main/cup/sql-parser.cup:

http://gerrit.cloudera.org:8080/#/c/16112/10/fe/src/main/cup/sql-parser.cup@3076
PS10, Line 3076: // * GROUP BY a, b, c WITH CUBE - non-standard CUBE syntax 
supported by some systems
Add example of GROUP BY GROUPING SETS ?


http://gerrit.cloudera.org:8080/#/c/16112/10/fe/src/main/java/org/apache/impala/analysis/GroupByClause.java
File fe/src/main/java/org/apache/impala/analysis/GroupByClause.java:

http://gerrit.cloudera.org:8080/#/c/16112/10/fe/src/main/java/org/apache/impala/analysis/GroupByClause.java@121
PS10, Line 121:   private void addGroupingID(long id, List<Expr> groupingExprs) 
throws AnalysisException {
Nit but might be cleaner to use the JDK BitSet class especially down the line 
when filling out the multiagg info.



--
To view, visit http://gerrit.cloudera.org:8080/16112
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I178e45de94d736630c97ae1ec4a92423cd74621f
Gerrit-Change-Number: 16112
Gerrit-PatchSet: 10
Gerrit-Owner: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Aman Sinha <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Shant Hovsepian <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Comment-Date: Tue, 30 Jun 2020 16:52:03 +0000
Gerrit-HasComments: Yes

Reply via email to