[ 
https://issues.apache.org/jira/browse/HIVE-24232?focusedWorklogId=495962&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-495962
 ]

ASF GitHub Bot logged work on HIVE-24232:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Oct/20 15:42
            Start Date: 06/Oct/20 15:42
    Worklog Time Spent: 10m 
      Work Description: ashutoshc commented on pull request #1554:
URL: https://github.com/apache/hive/pull/1554#issuecomment-704360746


   +1 LGTM. Golden files need updating.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 495962)
    Time Spent: 20m  (was: 10m)

> Incorrect translation of rollup expression from Calcite
> -------------------------------------------------------
>
>                 Key: HIVE-24232
>                 URL: https://issues.apache.org/jira/browse/HIVE-24232
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In Calcite, it is not necessary that the columns in the group set are in the 
> same order as the rollup. For instance, this is the Calcite representation of 
> a rollup for a given query:
> {code}
>     HiveAggregate(group=[{1, 6, 7}], groups=[[{1, 6, 7}, {1, 7}, {1}, {}]], 
> agg#0=[sum($12)], agg#1=[count($12)], agg#2=[sum($4)], agg#3=[count($4)], 
> agg#4=[sum($15)], agg#5=[count($15)])
> {code}
> When we generate the Hive plan from the Calcite operator, we make such 
> assumption incorrectly.



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

Reply via email to