[
https://issues.apache.org/jira/browse/HIVE-20881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16681393#comment-16681393
]
Hive QA commented on HIVE-20881:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12947371/HIVE-20881.01.patch
{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.
{color:green}SUCCESS:{color} +1 due to 15528 tests passed
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/14831/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/14831/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-14831/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12947371 - PreCommit-HIVE-Build
> Constant propagation oversimplifies projections
> -----------------------------------------------
>
> Key: HIVE-20881
> URL: https://issues.apache.org/jira/browse/HIVE-20881
> Project: Hive
> Issue Type: Bug
> Reporter: Zoltan Haindrich
> Assignee: Zoltan Haindrich
> Priority: Major
> Attachments: HIVE-20881.01.patch
>
>
> {code:java}
> create table cx2(bool1 boolean);
> insert into cx2 values (true),(false),(null);
> set hive.cbo.enable=true;
> select bool1 IS TRUE OR (cast(NULL as boolean) AND bool1 IS NOT TRUE AND
> bool1 IS NOT FALSE) from cx2;
> +--------+
> | _c0 |
> +--------+
> | true |
> | false |
> | NULL |
> +--------+
> set hive.cbo.enable=false;
> select bool1 IS TRUE OR (cast(NULL as boolean) AND bool1 IS NOT TRUE AND
> bool1 IS NOT FALSE) from cx2;
> +-------+
> | _c0 |
> +-------+
> | true |
> | NULL |
> | NULL |
> +-------+
> {code}
> from explain it seems the expression was simplified to: {{(_col0 is true or
> null)}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)