[ 
https://issues.apache.org/jira/browse/IMPALA-9897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17153096#comment-17153096
 ] 

ASF subversion and git services commented on IMPALA-9897:
---------------------------------------------------------

Commit 7a5b1bab5adde5cdf4cd3f772edc5631efd3737e in impala's branch 
refs/heads/master from Tim Armstrong
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=7a5b1ba ]

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

Supports a single ROLLUP, CUBE or GROUPING SETS clause in
GROUP BY.

Also adds non-standard "WITH ROLLUP" and "WITH CUBE" syntax
that is supported by some other SQL dialects.

This implements basic parsing and validation of the query,
then raises an AnalysisException to report that it is not
supported so that incorrect plans will not be generated.

This patch adds a GroupByClause to each SelectStmt that
contains info about the grouping sets and the original
GROUP BY list. The grouping exprs are still represented
as a List<Expr> in SelectStmt. Most of the logic, including
statement and expr rewrites, can operate on this list of
expressions without requiring special handling for grouping
sets.

Testing:
* Add Parser test.
* Add toSql() test.
* Added analysis tests to check that analysis accepts or rejects
  queries correctly.

Change-Id: I178e45de94d736630c97ae1ec4a92423cd74621f
Reviewed-on: http://gerrit.cloudera.org:8080/16112
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Parser support for ROLLUP, CUBE and GROUPING SETS
> -------------------------------------------------
>
>                 Key: IMPALA-9897
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9897
>             Project: IMPALA
>          Issue Type: Sub-task
>          Components: Frontend
>            Reporter: Tim Armstrong
>            Assignee: Tim Armstrong
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to