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

Jesus Camacho Rodriguez updated HIVE-8988:
------------------------------------------
    Status: Patch Available  (was: In Progress)

The patch implements the AST->Calcite and Calcite->AST paths for grouping sets.

The grouping__id function of Hive is computed relying on the group_id function 
in Calcite. 

As grouping sets in Calcite are represented using a boolean for every grouping 
column, a projection is added on top of the Aggregate operator in Calcite. The 
projection removes these columns, so taking the plan back to Hive AST 
afterwards is straightforward (column indices are right).

> Support advanced aggregation in Hive to Calcite path 
> -----------------------------------------------------
>
>                 Key: HIVE-8988
>                 URL: https://issues.apache.org/jira/browse/HIVE-8988
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 0.15.0
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>              Labels: grouping, logical, optiq
>             Fix For: 0.15.0
>
>         Attachments: HIVE-8988.patch
>
>
> To close the gap between Hive and Calcite, we need to support the translation 
> of GroupingSets into Calcite; currently this is not implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to