进入hive shell,输入set hive.compute.query.using.stats=false,然后运行下查询语句,发现正常。

对应Ambari中Hive组件的配置参数:

Hive查询count(*)和count(1)显示为0,但表中存在数据

修改后可能对查询性能稍微有点影响

相关文章:

  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-06-08
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案