I have to extract timeStamp column from this Array in HIVE? [{"timeStamp":1506411499989,"status":"BROADCASTED"}]
Asked
Active
Viewed 530 times
1
-
Please provide your table ddl and data example – leftjoin Sep 27 '17 at 12:54
2 Answers
0
Use lateral view
+explode
and 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;

leftjoin
- 36,950
- 8
- 57
- 116