You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2015/01/17 03:21:35 UTC
[jira] [Commented] (HIVE-9053) select constant in union all
followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281155#comment-14281155 ]
Thejas M Nair commented on HIVE-9053:
-------------------------------------
Looks like a fix we should include in hive 0.14 branch as well.
> 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
> Affects Versions: 0.13.0, 0.14.0
> Reporter: Pengcheng Xiong
> Assignee: Pengcheng Xiong
> Fix For: 0.15.0
>
> Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, HIVE-9053.03.patch, HIVE-9053.04.patch
>
>
> 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)