美文网首页
hive 常用语句

hive 常用语句

作者: one_8274 | 来源:发表于2022-02-25 10:06 被阅读0次

统计字段空值率

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