Ryan Clark
07/20/2021, 7:54 PMRyan Clark
07/20/2021, 7:54 PM{
"one": "one",
"two": "two",
"three": "three",
"fourTimestamp": "1593549705711",
"payload": {
"context": {
"one": "one",
"two": "two"
},
"message": {
"one": "one",
"two": "two"
}
},
"five": "five"
}
Ryan Clark
07/20/2021, 7:54 PM"one", "two", "three", "fourTimestamp"
 in the table.Ryan Clark
07/20/2021, 7:54 PMingestionConfig
 for the first time:
{
"tableName": "tableName",
"tableType": "REALTIME",
"segmentsConfig": {
"timeColumnName": "fourTimestamp",
"timeType": "MILLISECONDS",
"schemaName": "schemaName",
"replicasPerPartition": "1"
},
"tenants": {},
"tableIndexConfig": {
"loadMode": "MMAP",
"streamConfigs": {
"streamType": "kinesis",
"stream.kinesis.topic.name": "stream-name",
"region": "us-east-1",
"shardIteratorType": "AFTER_SEQUENCE_NUMBER",
"stream.kinesis.consumer.type": "lowlevel",
"stream.kinesis.fetch.timeout.millis": "30000",
"stream.kinesis.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"stream.kinesis.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kinesis.KinesisConsumerFactory",
"realtime.segment.flush.threshold.size": "1000000",
"realtime.segment.flush.threshold.time": "6h"
}
},
"ingestionConfig": {
"complexTypeConfig": {
"delimiter": ".",
"fieldsToUnnest": [
"payload.connection",
"payload.message"
],
"collectionNotUnnestedToJson": "NON_PRIMITIVE"
}
},
"metadata": {
"customConfigs": {}
}
}
Ryan Clark
07/20/2021, 7:54 PM"five"
 , which is not nested.
{
"schemaName": "mobileEvent",
"dimensionFieldSpecs": [
{
"name": "one",
"dataType": "STRING"
},
{
"name": "two",
"dataType": "STRING"
},
{
"name": "five",
"dataType": "STRING"
},
{
"name": "payload.context.one",
"dataType": "STRING"
},
{
"name": "payload.context.two",
"dataType": "STRING"
},
{
"name": "payload.message.one",
"dataType": "STRING"
},
{
"name": "payload.message.two",
"dataType": "STRING"
}
],
"metricFieldSpecs": [
{
"name": "three",
"dataType": "INT"
}
],
"dateTimeFieldSpecs": [
{
"name": "fourTimestamp",
"dataType": "STRING",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}
]
}
Ryan Clark
07/20/2021, 7:54 PM"five"
 which is not nested.
Is there something invalid about my complexTypeConfig?Mayank
Jackie
07/20/2021, 8:12 PMRyan Clark
07/20/2021, 8:14 PM./pinot-admin.sh AddTable -tableConfigFile
and
./pinot-admin.sh AddSchema -schemaFile
Ryan Clark
07/20/2021, 8:36 PMYupeng Fu
07/20/2021, 8:46 PMYupeng Fu
07/20/2021, 8:46 PMRyan Clark
07/20/2021, 9:12 PMYupeng Fu
07/20/2021, 9:30 PMMayank