hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksiy Sayankin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer
Date Thu, 14 Dec 2017 16:19:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleksiy Sayankin updated HIVE-18279:
------------------------------------
    Issue Type: Bug  (was: Improvement)

> Incorrect condition in StatsOpimizer
> ------------------------------------
>
>                 Key: HIVE-18279
>                 URL: https://issues.apache.org/jira/browse/HIVE-18279
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Oleksiy Sayankin
>            Assignee: Oleksiy Sayankin
>
> At the moment {{StatsOpimizer}} has code
> {code}
>         if (rowCnt == null) {
>           // if rowCnt < 1 than its either empty table or table on which stats are
not
>           //  computed We assume the worse and don't attempt to optimize.
>           Logger.debug("Table doesn't have up to date stats " + tbl.getTableName());
>           rowCnt = null;
>         }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message