【发布时间】:2013-08-10 09:32:28
【问题描述】:
我在 hive 中有一个 double 类型的列,但是当我这样做时,有些行是 NULL:
select columnA from table;
现在,如果我运行以下命令,两个查询都会得到 0:
select count(*) from table where columnA = "NULL";
select count(*) from table where columnA = NULL;
如何计算表中为 NULL 的行数?
【问题讨论】: