我必须在HIVE中从这个数组中提取timeStamp列吗? [{" timeStamp":1506411499989," status":" BROADCASTED"}]
答案 0 :(得分:0)
使用explode功能,然后从爆炸表/视图中选择时间戳
答案 1 :(得分:0)
使用lateral view
+ explode
和get_json_object
:
select s.*, get_json_object(a.your_json,'$.timeStamp') as timeStamp
from your_table s
lateral view outer explode (your_Array) a;