Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
None
-
None
Description
At the moment StatsOpimizer has 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; }
in method private Long getRowCnt(). Condition
if (rowCnt == null) {
should be changed to
if (rowCnt == null || rowCnt == 0) {
because 0 value also means that table stats may not be computed.
Attachments
Attachments
Issue Links
- is related to
-
HIVE-13452 StatsOptimizer should return no rows on empty table with group by
- Resolved
- links to