You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sergio Peña (JIRA)" <ji...@apache.org> on 2016/11/20 17:42:58 UTC

[jira] [Commented] (HIVE-14251) Union All of different types resolves to incorrect data

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

Sergio Peña commented on HIVE-14251:
------------------------------------

I'm moving this JIRA out of 2.1.1 release as it is not a blocker nor critical for a 2.1.1 RC version. Feel free to commit it to branch 2.1 if the patch is ready before the release.

> Union All of different types resolves to incorrect data
> -------------------------------------------------------
>
>                 Key: HIVE-14251
>                 URL: https://issues.apache.org/jira/browse/HIVE-14251
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>    Affects Versions: 2.0.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>             Fix For: 2.2.0
>
>         Attachments: HIVE-14251.1.patch, HIVE-14251.2.patch, HIVE-14251.3.patch, HIVE-14251.4.patch, HIVE-14251.5.patch, HIVE-14251.6.patch
>
>
> create table src(c1 date, c2 int, c3 double);
> insert into src values ('2016-01-01',5,1.25);
> select * from 
> (select c1 from src union all
> select c2 from src union all
> select c3 from src) t;
> It will return NULL for the c1 values. Seems the common data type is resolved to the last c3 which is double.



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