You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Leonid Chistov (Jira)" <ji...@apache.org> on 2022/12/01 14:33:00 UTC

[jira] [Updated] (CALCITE-5411) Update Spark Dialect to support ROLLUP & CUBE aggregate functions.

     [ https://issues.apache.org/jira/browse/CALCITE-5411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonid Chistov updated CALCITE-5411:
------------------------------------
    Description: 
Support for standard
{code:java}
GROUP BY { group_expression |
{ ROLLUP | CUBE | GROUPING SETS }
(grouping_set [ , ...]) } [ , ... ] {code}
 syntax was added to Spark several releases ago in addition to the previously supported non-standard syntax 
{code:java}
GROUP BY group_expression [ , group_expression [ , ... ] ] [ WITH { ROLLUP | CUBE } ] {code}

See: [https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-groupby.html]

We need to update `SparkSqlDialect` implementation to reflect these changes in supported SQL syntax.

  was:
Support for standard
GROUP BY \{ group_expression | { ROLLUP | CUBE | GROUPING SETS } (grouping_set [ , ...]) } [ , ... ]
 syntax was added to Spark several releases ago in addition to the previously supported non-standard syntax 
GROUP BY group_expression [ , group_expression [ , ... ] ] [ WITH \{ ROLLUP | CUBE } ]
See: [https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-groupby.html]

We need to update `SparkSqlDialect` implementation to reflect these changes in supported SQL syntax.


> Update Spark Dialect to support ROLLUP & CUBE aggregate functions.
> ------------------------------------------------------------------
>
>                 Key: CALCITE-5411
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5411
>             Project: Calcite
>          Issue Type: Task
>    Affects Versions: 1.32.0
>            Reporter: Leonid Chistov
>            Assignee: Leonid Chistov
>            Priority: Major
>
> Support for standard
> {code:java}
> GROUP BY { group_expression |
> { ROLLUP | CUBE | GROUPING SETS }
> (grouping_set [ , ...]) } [ , ... ] {code}
>  syntax was added to Spark several releases ago in addition to the previously supported non-standard syntax 
> {code:java}
> GROUP BY group_expression [ , group_expression [ , ... ] ] [ WITH { ROLLUP | CUBE } ] {code}
> See: [https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-groupby.html]
> We need to update `SparkSqlDialect` implementation to reflect these changes in supported SQL syntax.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)