hive-列转行
转成
select customer_code,product_type
from temp.temp_xx
LATERAL VIEW explode(SPLIT(product_types,',')) table_tmp AS product_type
where customer_code ='K100515182'
转成
select customer_code,product_type
from temp.temp_xx
LATERAL VIEW explode(SPLIT(product_types,',')) table_tmp AS product_type
where customer_code ='K100515182'