hive中的三种空值:
- null 空值->判定方式 columns is null
select * from Table1 where name is null;
-
'' 空字符串,表示字段不为空值,但为空字符串(等于 length(column)=0)
select * from table1 where name = '';
-
'NULL' -> NULL字符,由于建表语句或其他因素导致存储了字符为NULL的空值
select * from table1 where name = 'NULL';