hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laljo John Pullokkaran (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-11919) Hive Union Type Mismatch
Date Tue, 13 Oct 2015 01:05:05 GMT

     [ https://issues.apache.org/jira/browse/HIVE-11919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Laljo John Pullokkaran updated HIVE-11919:
------------------------------------------
    Affects Version/s: 1.3.0

> Hive Union Type Mismatch
> ------------------------
>
>                 Key: HIVE-11919
>                 URL: https://issues.apache.org/jira/browse/HIVE-11919
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>            Reporter: Laljo John Pullokkaran
>            Assignee: Laljo John Pullokkaran
>             Fix For: 2.0.0
>
>         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