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

Jesus Camacho Rodriguez commented on HIVE-8988:
-----------------------------------------------

OK, I was confused with the {{grouping_id}} function, as I thought the input 
were the _indicator_ columns instead of the _grouping_ columns themselves. Now 
I get your point.

Would that {{$foo}} function be something interesting to have in Calcite 
itself? Meaning, a function that given _n_ booleans, computes the integer value 
as {{i0 + 2 * i1 + 4 * i2 + ...}}? Otherwise, I'll implement it and keep it in 
Hive.

> 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.01.patch, HIVE-8988.patch
>
>
> CLEAR LIBRARY CACHE
> 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