【发布时间】:2020-07-29 02:50:50
【问题描述】:
我正在尝试使用 Snowflake 中的后侧函数解析 Snowflake 中的以下嵌套 JSON,但我希望“GoalTime”中的每个嵌套列都显示为一列。例如,
GoalTime_InDoorOpen
2020-03-26T12:58:00-04:00
GoalTime_InLastOff
null
GoalTime_OutStartBoarding
2020-03-27T14:00:00-04:00
"GoalTime": [
{
"GoalName": "GoalTime_InDoorOpen",
"GoalTime": "2020-03-26T12:58:00-04:00"
},
{
"GoalName": "GoalTime_InLastOff"
},
{
"GoalName": "GoalTime_InReadyToTow"
},
{
"GoalName": "GoalTime_OutTowAtGate"
},
{
"GoalName": "GoalTime_OutStartBoarding",
"GoalTime": "2020-03-27T14:00:00-04:00"
},
【问题讨论】:
标签: sql json azure snowflake-cloud-data-platform