统计字段空值率
select avg(case when jobtype is null then 1.0 else 0.0 end) as jobtype_null_p,
avg(case when salary is null then 1.0 else 0.0 end) as salary_null_p,
from testdb.employee;
select avg(case when jobtype is null then 1.0 else 0.0 end) as jobtype_null_p,
avg(case when salary is null then 1.0 else 0.0 end) as salary_null_p,
from testdb.employee;
本文标题:hive 常用语句
本文链接:https://www.haomeiwen.com/subject/qprxrrtx.html
网友评论