[
https://issues.apache.org/jira/browse/HIVE-9644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14526392#comment-14526392
]
Hive QA commented on HIVE-9644:
-------------------------------
{color:red}Overall{color}: -1 at least one tests failed
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12729977/HIVE-9644.patch
{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 8887 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_ql_rewrite_gbtoidx_cbo_2
org.apache.hive.jdbc.TestSSL.testSSLVersion
{noformat}
Test results:
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3713/testReport
Console output:
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3713/console
Test logs:
http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-3713/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 2 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12729977 - PreCommit-HIVE-TRUNK-Build
> CASE comparison operator rotation optimization
> ----------------------------------------------
>
> Key: HIVE-9644
> URL: https://issues.apache.org/jira/browse/HIVE-9644
> Project: Hive
> Issue Type: Bug
> Components: Logical Optimizer
> Affects Versions: 1.2.0
> Reporter: Gopal V
> Assignee: Ashutosh Chauhan
> Attachments: HIVE-9644.patch
>
>
> Constant folding for queries don't kick in for some automatically generated
> query patterns which look like this.
> {code}
> hive> explain select count(1) from store_sales where (case ss_sold_date when
> '1998-01-01' then 1 else null end)=1;
> {code}
> This should get rewritten by pushing the equality into the case branches.
> {code}
> select count(1) from store_sales where (case ss_sold_date when '1998-01-01'
> then 1=1 else null=1 end);
> {code}
> Ending up with a simplified filter condition, resolving itself as
> {code}
> select count(1) from store_sales where ss_sold_date= '1998-01-01' ;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)