[ https://issues.apache.org/jira/browse/HIVE-9644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532681#comment-14532681 ]
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/12730978/HIVE-9644.3.patch {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 8912 tests executed *Failed tests:* {noformat} org.apache.hive.hcatalog.hbase.TestPigHBaseStorageHandler.org.apache.hive.hcatalog.hbase.TestPigHBaseStorageHandler {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3797/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3797/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-3797/ 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: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12730978 - PreCommit-HIVE-TRUNK-Build > Fold case & when udfs > --------------------- > > Key: HIVE-9644 > URL: https://issues.apache.org/jira/browse/HIVE-9644 > Project: Hive > Issue Type: Bug > Components: Logical Optimizer > Affects Versions: 0.14.0, 1.0.0, 1.1.0 > Reporter: Gopal V > Assignee: Ashutosh Chauhan > Attachments: HIVE-9644.1.patch, HIVE-9644.2.patch, HIVE-9644.3.patch, > 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)