美文网首页
hive有数据但count()返回0的处理

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

作者: Eazow | 来源:发表于2022-07-20 10:03 被阅读0次
    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

    相关文章

      网友评论

          本文标题:hive有数据但count()返回0的处理

          本文链接:https://www.haomeiwen.com/subject/qpeeirtx.html