You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Laljo John Pullokkaran (JIRA)" <ji...@apache.org> on 2015/10/01 04:29:04 UTC
[jira] [Updated] (HIVE-11919) Hive Union Type Mismatch
[ https://issues.apache.org/jira/browse/HIVE-11919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laljo John Pullokkaran updated HIVE-11919:
------------------------------------------
Attachment: HIVE-11919.2.patch
> 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)