hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
Date Tue, 09 Dec 2014 19:28:13 GMT

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

Pengcheng Xiong commented on HIVE-9053:
---------------------------------------

union distinct will give the same wrong result

> select constant in union all followed by group by gives wrong result
> --------------------------------------------------------------------
>
>                 Key: HIVE-9053
>                 URL: https://issues.apache.org/jira/browse/HIVE-9053
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>
> Here is the the way to reproduce with q test:
> select key from (select '1' as key from src union all select key from src)tab group by
key;
> will give
> OK
> NULL
> 1
> This is not correct as src contains many other keys.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message