hive空字符串数组和空数组
空字符串数组 :array(‘’)
空数组:array()
如果想查找表中的空字符串数组:
方法:可以使用查找数组中的第一个值是否为空字符串
select classify from table where classify[0]='';
想查找表中空数组:
方法:使用size判断数据大小是否为0
select classify from table where size(classify)=0;
hive空字符串数组和空数组
空字符串数组 :array(‘’)
空数组:array()
如果想查找表中的空字符串数组:
方法:可以使用查找数组中的第一个值是否为空字符串
select classify from table where classify[0]='';
想查找表中空数组:
方法:使用size判断数据大小是否为0
select classify from table where size(classify)=0;