[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesus Camacho Rodriguez updated HIVE-12742: --- Fix Version/s: (was: 2.1.0) > 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 >Affects Versions: 1.2.1 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 2.0.0 > > Attachments: HIVE-12742.01.patch, HIVE-12742.02.patch, > HIVE-12742.03.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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Fix Version/s: 2.1.0 2.0.0 > 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 >Affects Versions: 1.2.1 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 2.0.0, 2.1.0 > > Attachments: HIVE-12742.01.patch, HIVE-12742.02.patch, > HIVE-12742.03.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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Affects Version/s: 1.2.1 > 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 >Affects Versions: 1.2.1 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 2.0.0, 2.1.0 > > Attachments: HIVE-12742.01.patch, HIVE-12742.02.patch, > HIVE-12742.03.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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Attachment: HIVE-12742.03.patch address golden file update > 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, > HIVE-12742.03.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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Attachment: (was: HIVE-12742.02.patch) > 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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Attachment: HIVE-12742.02.patch address the "CASE" case too. Add test case for non-cbo too. > 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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Attachment: HIVE-12742.02.patch > 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)
[jira] [Updated] (HIVE-12742) NULL table comparison within CASE does not work as previous hive versions
[ https://issues.apache.org/jira/browse/HIVE-12742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-12742: --- Attachment: HIVE-12742.01.patch > 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 > > > 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)