Hi all!
I have JSON flex table with nested records as array.
Like this:
{
"ID":"12345",
"Update":{
"Time":"20150227",
"Type":"input",
"Record":[
{
"PartID":"4",
"PartType":"0"
},
{
"PartID":"7",
"PartType":"1"
}
]
}
}
I need to transform it in table like this:
ID | PartID | PartType
-----+--------+---------
12345 4 0
12345 7 1
In Apache Drill it could easily be done through FLATTEN function.
See https://cwiki.apache.org/confluence/display/DRILL/FLATTEN+Function for details.
Is that true that Vertica does not have such a great possibility? Or this could be done some other way?