Joey Pereira
08/19/2020, 5:13 PMNeha Pawar
Joey Pereira
08/19/2020, 5:17 PM{
"schemaName": "test1",
"dimensionFieldSpecs": [
{
"name": "id",
"dataType": "STRING"
}
],
"metricFieldSpecs": [
{
"name": "amount",
"dataType": "DOUBLE"
}
],
"ingestionConfig": {
"transformConfigs": [
{
"columnName": "transform_field_1",
"transformFunction": "Groovy({id}, id)"
}
]
},
"dateTimeFieldSpecs": [
{
"name": "created_at",
"dataType": "LONG",
"format": "1:SECONDS:EPOCH",
"granularity": "15:MINUTES"
}
]
}
table
{
"tableName": "test1",
"tableType": "OFFLINE",
"routing": {
"segmentPrunerType": "partition"
},
"segmentsConfig": {
"timeColumnName": "created_at",
"timeType": "SECONDS",
"replication": "1",
"schemaName": "test1",
"segmentPushFrequency": "HOURLY",
"segmentPushType": "APPEND"
},
"tableIndexConfig": {
"loadMode": "MMAP"
},
"tenants": {},
"metadata": {}
}
when I was uploading it to Pinot via UpdateSchema
and AddTable
, it looks like the ingestionConfig
does not even make it to the table and when I run GET /tables/test1/schema
, the schema I get back is
{
"schemaName": "test1",
"dimensionFieldSpecs": [
{
"name": "id",
"dataType": "STRING"
}
],
"metricFieldSpecs": [
{
"name": "amount",
"dataType": "DOUBLE"
}
],
"dateTimeFieldSpecs": [
{
"name": "created_at",
"dataType": "LONG",
"format": "1:SECONDS:EPOCH",
"granularity": "15:MINUTES"
}
]
}
Neha Pawar
Neha Pawar
Neha Pawar
Joey Pereira
08/19/2020, 5:19 PMJoey Pereira
08/19/2020, 5:20 PMNeha Pawar