Complex Type Examples (Unnest)
Additional examples that demonstrate handling of complex types.
Unnest Root Level Collection
Sample JSON record
{
"students": [
{
"firstName": "Jane",
"id": "100",
"scores": {
"physics": 91,
"chemistry": 93,
"maths": 99
}
},
{
"firstName": "John",
"id": "101",
"scores": {
"physics": 97,
"chemistry": 98,
"maths": 99
}
},
{
"firstName": "Jen",
"id": "102",
"scores": {
"physics": 96,
"chemistry": 95,
"maths": 100
}
}
]
}Pinot Schema
Pinot Table Configuration
Data in Pinot

Unnest sibling collections
Sample JSON Record
Pinot Schema
Pinot Table configuration
Data in Pinot

Unnest nested collection
Sample JSON Record
Pinot Schema
Pinot Table configuration
Data in Pinot

Unnest Multi Level Array
Sample JSON Record
Pinot Schema
Pinot Table configuration
Data in Pinot

Convert inner collections
Sample JSON Record
Pinot Schema
Pinot Table configuration
Data in Pinot

Primitive Array Converted to JSON String
Sample JSON Record
Pinot Schema
Pinot Table configuration
Data in Pinot

Unnest JsonArrayString collections
Sample Record
Pinot Schema
Pinot Table Configuration
Data in Pinot

Last updated
Was this helpful?

