查询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;

猜你喜欢

转载自blog.csdn.net/qq_36434219/article/details/120404777
今日推荐