您好需要从数组中提取数据,我使用 Athena
create external table test
(
customer string
)
Location 'something-something'
该表的单行是,
select * from customer limit 1
{ "ID": "XXXX", "USerDate": { "items": [{ "Name": "Nir", "CLG": "NPT", "Place": "CBE", "Any Group": {}, "Interest": { "items": [{ "Games": "Cricket", "Music": "AR" }] }, "Others": {} }] } }
我需要像这样提取行
| 身份证 | 姓名 | 地点 | 游戏| 音乐 |
|-----|---------|----------|----------|---------- |