You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alex Rovner (Created) (JIRA)" <ji...@apache.org> on 2011/11/18 21:06:51 UTC

[jira] [Created] (HIVE-2597) Repeated key in GROUP BY is erroneously displayed when using DISTINCT

Repeated key in GROUP BY is erroneously displayed when using DISTINCT
---------------------------------------------------------------------

                 Key: HIVE-2597
                 URL: https://issues.apache.org/jira/browse/HIVE-2597
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.7.1
            Reporter: Alex Rovner


The following query was simplified for illustration purposes. 

This works correctly:
select client_tid, "" as myvalue1, "" as myvalue2 from clients cluster by client_tid

The intent here is to produce two empty columns in between data.

The following query does not work:
select distinct client_tid, "" as myvalue1, "" as myvalue2 from clients cluster by client_tid

FAILED: Error in semantic analysis: Line 1:44 Repeated key in GROUP BY ""

The key is not repeated since the aliases were given. Seems like Hive is ignoring the aliases when the "distinct" keyword is specified.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2597) Repeated key in GROUP BY is erroneously displayed when using DISTINCT

Posted by "Alex Rovner (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184371#comment-13184371 ] 

Alex Rovner commented on HIVE-2597:
-----------------------------------

Anyone looking at this issue?
                
> Repeated key in GROUP BY is erroneously displayed when using DISTINCT
> ---------------------------------------------------------------------
>
>                 Key: HIVE-2597
>                 URL: https://issues.apache.org/jira/browse/HIVE-2597
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.7.1
>            Reporter: Alex Rovner
>
> The following query was simplified for illustration purposes. 
> This works correctly:
> select client_tid, "" as myvalue1, "" as myvalue2 from clients cluster by client_tid
> The intent here is to produce two empty columns in between data.
> The following query does not work:
> select distinct client_tid, "" as myvalue1, "" as myvalue2 from clients cluster by client_tid
> FAILED: Error in semantic analysis: Line 1:44 Repeated key in GROUP BY ""
> The key is not repeated since the aliases were given. Seems like Hive is ignoring the aliases when the "distinct" keyword is specified.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira