Apache HIVE的计数结果不一致

时间:2019-06-25 13:13:52

标签: sql hive count hortonworks-data-platform hdpi

我们拥有最新的Hortonworks HDP,带有Hive版本(3.1.0)

在给定条件下尝试计算行数时遇到问题。在相同条件下通过简单选择并排执行时,计数(*)返回假值

示例:

select *
from mydata
where product = "157536" and
      date = "2019-03-05";

=>给出34行

select count(*)
from mydata
where product = "157536" and
      date = "2019-03-05";

=>计数为9

在网上查找后:我已经尝试过

分析表mydata计算统计信息; (在计数之前,但无济于事)

还尝试了维修表

还尝试使用这些参数进行设置:hive.stats.autogather和hive.compute.query.using.stats =>但什么都没有

其他信息:Hive与Tez一起运行

0 个答案:

没有答案