You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vineet Garg (JIRA)" <ji...@apache.org> on 2018/08/21 04:10:00 UTC
[jira] [Assigned] (HIVE-20432) Rewrite BETWEEN to IN for integer
types for stats estimation
[ https://issues.apache.org/jira/browse/HIVE-20432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vineet Garg reassigned HIVE-20432:
----------------------------------
> 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
>
> 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)