我在 Hive 表中有一个类型为:
array<array<struct<type:string,value:string,currency:string>>>
以下是列中的数据示例:
[
[
{
"type": "PROFIT",
"value": "100",
"currency": "USD"
},
{
"type": "NET",
"value": "50",
"currency": "USD"
},
{
"type": "TOTAL",
"value": "250",
"currency": "USD"
}
]
]
如何将每个“类型”查询到一列?
利润 | 网 | 全部的 |
---|