hive有数据但count()返回0的处理

2022-07-20  本文已影响0人  Eazow
hive> set hive.compute.query.using.stats=false;

hive.compute.query.using.stats
Default Value: false
Added In: Hive 0.13.0 with HIVE-5483
When set to true Hive will answer a few queries like min, max, and count(1) purely using statistics stored in the metastore. For basic statistics collection, set the configuration property hive.stats.autogather to true. For more advanced statistics collection, run ANALYZE TABLE queries.

Reference

https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-Statistics

上一篇 下一篇

猜你喜欢

热点阅读