hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-11919) Hive Union Type Mismatch
Date Wed, 07 Oct 2015 14:08:26 GMT

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

Jesus Camacho Rodriguez commented on HIVE-11919:
------------------------------------------------

LGTM, +1

> Hive Union Type Mismatch
> ------------------------
>
>                 Key: HIVE-11919
>                 URL: https://issues.apache.org/jira/browse/HIVE-11919
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Laljo John Pullokkaran
>            Assignee: Laljo John Pullokkaran
>         Attachments: HIVE-11919.1.patch, HIVE-11919.2.patch
>
>
> In Hive for union right most type wins out for most primitive types during plan gen.
However when union op gets initialized the type gets switched.
> This could result in bad data & type exceptions.
> This happens only in non cbo mode.
> In CBO mode, Hive would add explicit type casts that would prevent such type issues.
> Sample Query: 
> select cd/sum(cd) over() from(select cd from u1 union all select cd from u2 union all
select cd from u3)u4;



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

Mime
View raw message