hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-3544) union involving double column with a map join subquery will fail or give wrong results
Date Fri, 19 Oct 2012 16:40:13 GMT

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

Namit Jain commented on HIVE-3544:
----------------------------------

+1
                
> union involving double column with a map join subquery will fail or give wrong results
> --------------------------------------------------------------------------------------
>
>                 Key: HIVE-3544
>                 URL: https://issues.apache.org/jira/browse/HIVE-3544
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>         Attachments: HIVE-3544.1.patch.txt, HIVE-3544.2.patch.txt, HIVE-3544.3.patch.txt,
HIVE-3544.4.patch.txt
>
>
> The following query fails:
> select * from (select cast(a.key as bigint) as key from src a join src b on a.key = b.key
union all select cast(key as double) as key from src)a
> The following query gives wrong results:
> select * from (select cast(a.key as bigint) as key, cast(b.key as double) as value from
src a join src b on a.key = b.key union all select cast(key as double) as key, cast(key as
string) as value from src)a
> But the following query runs fine:
> select * from (select cast(a.key as bigint) as key from src a union all select cast(key
as double) as key from src)a

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message