hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
Date Thu, 24 Dec 2015 07:35:49 GMT

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

Pengcheng Xiong commented on HIVE-12742:
----------------------------------------

[~gopalv], thanks for pointing out NVL. i have modified the patch accordingly. Could you take
another look? Thanks.

> NULL table comparison within CASE does not work as previous hive versions
> -------------------------------------------------------------------------
>
>                 Key: HIVE-12742
>                 URL: https://issues.apache.org/jira/browse/HIVE-12742
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-12742.01.patch, HIVE-12742.02.patch
>
>
> drop table test_1; 
> create table test_1 (id int, id2 int); 
> insert into table test_1 values (123, NULL);
> SELECT cast(CASE WHEN id = id2 THEN FALSE ELSE TRUE END AS BOOLEAN) AS b 
> FROM test_1; 
> --NULL
> But the output should be true (confirmed with postgres.)



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

Mime
View raw message