Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1
-
None
-
None
Description
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.)
Attachments
Attachments
Issue Links
- relates to
-
HIVE-13942 Correctness of CASE folding in the presence of NULL values
- Closed
-
HIVE-12751 Fix NVL explain syntax
- Closed
- links to