hive explode
生活随笔
收集整理的這篇文章主要介紹了
hive explode
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
explode
用法:展開字段,打成一列
對array操作
drop table if exists test; create temporary table test ( id string, f1 array<string> ) ;insert overwrite table test select 123, array('1', '2', '3');select id, tag from lateral view explode(f1) r as tag;對struct操作
import sklearn def總結
以上是生活随笔為你收集整理的hive explode的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: flink 3-转换
- 下一篇: flink 5-窗口和时间