You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/02 18:32:00 UTC

[jira] [Work logged] (HIVE-22448) CBO: Expand the multiple count distinct with a group-by key

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

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

                Author: ASF GitHub Bot
            Created on: 02/Nov/19 18:31
            Start Date: 02/Nov/19 18:31
    Worklog Time Spent: 10m 
      Work Description: jcamachor commented on pull request #838: HIVE-22448
URL: https://github.com/apache/hive/pull/838
 
 
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

            Worklog Id:     (was: 337738)
    Remaining Estimate: 0h
            Time Spent: 10m

> CBO: Expand the multiple count distinct with a group-by key
> -----------------------------------------------------------
>
>                 Key: HIVE-22448
>                 URL: https://issues.apache.org/jira/browse/HIVE-22448
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO
>            Reporter: Gopal Vijayaraghavan
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22448.01.patch, HIVE-22448.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code}
> create temporary table mytable1 (x integer, y integer, z integer, a integer);
> explain cbo
> select z, x, count(distinct y), count(distinct a)
> from mytable1
> group by z, x;
> explain cbo
> select count(distinct y), count(distinct a)
> from mytable1
> {code}
> The first is not vectorized, the second one is because of the grouping-set based rewrite for count distinct.



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