Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须从 HIVE 中的这个数组中提取时间戳列?[{“时间戳”:1506411499989,“状态”:“广播”}]
使用分解功能,然后从分解的表/视图中选择时间戳
使用lateral view+explode和get_json_object:
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;