查询hive报错 SQL 错误 [40000] [42000]: COMPILE FAILED: Parse error: [Error 40000] line 1:8 cannot recogniz

hive空值判断:如果为null,取"",否则取其值

select if(column_test is null, "", column_test) as column_alias from table_name;
posted @ 2021-09-21 19:58  韧小钊  阅读(1266)  评论(0)    收藏  举报