hive-列转行

 

转成hive-列转行_第1张图片 

 

select customer_code,product_type 
from temp.temp_xx
LATERAL VIEW explode(SPLIT(product_types,',')) table_tmp AS product_type 
where customer_code ='K100515182'

你可能感兴趣的:(hive,hadoop,数据仓库)