Schema and Table Shape
Understand Pinot schema design, table shape, null handling, and the schema fields that drive query and ingestion behavior.
What to design
Good defaults
Example schema
{
"schemaName": "orders",
"enableColumnBasedNullHandling": true,
"dimensionFieldSpecs": [
{ "name": "orderId", "dataType": "STRING" },
{ "name": "customerId", "dataType": "STRING" },
{ "name": "region", "dataType": "STRING" }
],
"metricFieldSpecs": [
{ "name": "amount", "dataType": "DOUBLE", "defaultNullValue": 0 }
],
"dateTimeFieldSpecs": [
{
"name": "eventTime",
"dataType": "LONG",
"format": "EPOCH",
"granularity": "1:DAYS"
}
]
}When to use the reference pages
What this page covered
Next step
Related pages
Last updated
Was this helpful?

