zhangbutao commented on PR #5215:
URL: https://github.com/apache/hive/pull/5215#issuecomment-2133168916

   > Hi @zhangbutao, Hive has an optimization for Iceberg's count(*) - 
[HIVE-27347](https://issues.apache.org/jira/browse/HIVE-27347), where stats 
supposed to be taken from snapshot
   
   Acutually, HIVE-27347 get row count stats from table's 
parameter`StatsSetupConst.ROW_COUNT ` (numRows) stored in HMS. not from 
snapshot. 
   
   Check the code: 
https://github.com/apache/hive/blob/a57e580542701a5acdf4e66ce99b52bae90b4d63/ql/src/java/org/apache/hadoop/hive/ql/optimizer/StatsOptimizer.java#L940-L942


-- 
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]

Reply via email to