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/27 10:07:00 UTC

[jira] [Work logged] (HIVE-16924) Support distinct in presence of Group By

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

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

                Author: ASF GitHub Bot
            Created on: 27/Nov/19 10:06
            Start Date: 27/Nov/19 10:06
    Worklog Time Spent: 10m 
      Work Description: miklosgergely commented on pull request #544: HIVE-16924 Support distinct in presence of Group By
URL: https://github.com/apache/hive/pull/544
 
 
   
 
----------------------------------------------------------------
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: 350316)
    Time Spent: 4.5h  (was: 4h 20m)

> Support distinct in presence of Group By 
> -----------------------------------------
>
>                 Key: HIVE-16924
>                 URL: https://issues.apache.org/jira/browse/HIVE-16924
>             Project: Hive
>          Issue Type: New Feature
>          Components: Query Planning
>            Reporter: Carter Shanklin
>            Assignee: Miklos Gergely
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-16924.01.patch, HIVE-16924.02.patch, HIVE-16924.03.patch, HIVE-16924.04.patch, HIVE-16924.05.patch, HIVE-16924.06.patch, HIVE-16924.07.patch, HIVE-16924.08.patch, HIVE-16924.09.patch, HIVE-16924.10.patch, HIVE-16924.11.patch, HIVE-16924.12.patch, HIVE-16924.13.patch, HIVE-16924.14.patch, HIVE-16924.15.patch, HIVE-16924.16.patch, HIVE-16924.17.patch, HIVE-16924.18.patch, HIVE-16924.19.patch, HIVE-16924.20.patch, HIVE-16924.21.patch, HIVE-16924.22.patch, HIVE-16924.23.patch, HIVE-16924.24.patch, HIVE-16924.25.patch, HIVE-16924.26.patch, HIVE-16924.27.patch
>
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> {code:sql}
> create table e011_01 (c1 int, c2 smallint);
> insert into e011_01 values (1, 1), (2, 2);
> {code}
> These queries should work:
> {code:sql}
> select distinct c1, count(*) from e011_01 group by c1;
> select distinct c1, avg(c2) from e011_01 group by c1;
> {code}
> Currently, you get : 
> FAILED: SemanticException 1:52 SELECT DISTINCT and GROUP BY can not be in the same query. Error encountered near token 'c1'



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