[ https://issues.apache.org/jira/browse/HIVE-20432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16607062#comment-16607062 ]
Hive QA commented on HIVE-20432: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12938742/HIVE-20432.5.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 14928 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/13641/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13641/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13641/ 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: 12938742 - 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, > HIVE-20432.3.patch, HIVE-20432.4.patch, HIVE-20432.5.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)