konstantinb commented on code in PR #6359:
URL: https://github.com/apache/hive/pull/6359#discussion_r3012726545
##########
ql/src/test/results/clientpositive/llap/vectorized_stats.q.out:
##########
@@ -1207,13 +1207,13 @@ STAGE PLANS:
minReductionHashAggr: 0.99
mode: hash
outputColumnNames: _col0
- Statistics: Num rows: 1 Data size: 40 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 6144 Data size: 183480 Basic
stats: COMPLETE Column stats: COMPLETE
Review Comment:
@zabetak, this is a good example of the possible impact of the NDV==0 on
statistics' estimates. Due to the issue
https://issues.apache.org/jira/browse/HIVE-29534, the Metastore NDV (35) of the
column table_onetimestamp.val1 is getting ignored, making the NDV of the
underlying ColStatistics object 0. Later, extractNDVGroupingColumns() sets this
0 value to 1. The new estimate of 6144 is way worse than the metastore value of
35, but could be way better than the original "1" in certain queries.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]