Member since
04-13-2020
1
Post
0
Kudos Received
0
Solutions
04-13-2020
04:56 AM
you can try https://my.oschina.net/leejun2005/blog/120463 For example, select a.timestamp, get_json_object(a.appevents, '$.eventid'), get_json_object(a.appenvets, '$.eventname') from log a; should be changed to select a.timestamp, b.* from log a lateral view json_tuple(a.appevent, 'eventid', 'eventname') b as f1, f2; UDTF(User-Defined Table-Generating Functions) 用来解决 输入一行输出多行(On-to-many maping) 的需求。
... View more