查询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;
hive空值判断:如果为null,取"",否则取其值
select if(column_test is null, "", column_test) as column_alias from table_name;