[ https://issues.apache.org/jira/browse/HIVE-20432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594577#comment-16594577 ]
Hive QA commented on HIVE-20432: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12937361/HIVE-20432.2.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 14897 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[subquery_select] (batchId=167) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/13499/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13499/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13499/ 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 Tests exited with: TestsFailedException: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12937361 - PreCommit-HIVE-Build > Rewrite BETWEEN to IN for integer types for stats estimation > ------------------------------------------------------------ > > Key: HIVE-20432 > URL: https://issues.apache.org/jira/browse/HIVE-20432 > Project: Hive > Issue Type: Improvement > Affects Versions: 4.0.0 > Reporter: Vineet Garg > Assignee: Vineet Garg > Priority: Major > Attachments: HIVE-20432.1.patch, HIVE-20432.2.patch > > > IN clause provides better statistics estimation since predicates are equality > based and it keeps into account selectivity of all values. BETWEEN is > rewritten into {{>= AND <=}} i.e. non-equality predicates which cause worse > estimation. For integer types BETWEEN could be rewritten into IN e.g. BETWEEN > 4 and 7 is equivalent to IN (4,5,6,7). -- This message was sent by Atlassian JIRA (v7.6.3#76005)