Table and schema config, for example (taken from PinotUpsertRestlestResourceTest.testEstimateHeapUsage):
{
"tableConfig": {
"tableName": "restletTable_UPSERT_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"segmentAssignmentStrategy": "BalanceNumSegmentAssignmentStrategy",
"segmentPushFrequency": "daily",
"replicasPerPartition": "3",
"minimizeDataMovement": false,
"retentionTimeUnit": "DAYS",
"retentionTimeValue": "5",
"segmentPushType": "APPEND",
"timeColumnName": "colTime",
"timeType": "DAYS",
"replication": "3",
"schemaName": "restletTable_UPSERT"
},
"tenants": {
"broker": "test",
"server": "test"
},
"tableIndexConfig": {
"createInvertedIndexDuringSegmentGeneration": false,
"enableDynamicStarTreeCreation": false,
"columnMajorSegmentBuilderEnabled": true,
"optimizeDictionaryForMetrics": false,
"noDictionarySizeRatioThreshold": 0.85,
"autoGeneratedInvertedIndex": false,
"segmentFormatVersion": "v3",
"enableDefaultStarTree": false,
"optimizeDictionaryType": false,
"invertedIndexColumns": [
"colInt",
"colString"
],
"rangeIndexVersion": 2,
"streamConfigs": {
"realtime.segment.flush.threshold.size": "100000000",
"realtime.segment.flush.threshold.time": "6h",
"stream.kafka.clusterGroup": "aggregate-tracking",
"stream.kafka.consumer.factory.class.name": "com.linkedin.pinot.v2.server.LiPinotKafkaConsumerFactory",
"stream.kafka.consumer.prop.auto.offset.reset": "largest",
"stream.kafka.consumer.type": "simple",
"stream.kafka.decoder.class.name": "com.linkedin.pinot.v2.server.LiKafkaDecoder",
"stream.kafka.topic.name": "UserGeneratedContentGestureCountEvent",
"streamType": "kafka"
},
"aggregateMetrics": true,
"optimizeDictionary": false,
"nullHandlingEnabled": false,
"noDictionaryColumns": [
"colBytes"
],
"sortedColumn": [],
"loadMode": "MMAP"
},
"metadata": {},
"routing": {
"routingTableBuilderName": "PartitionAwareRealtime",
"instanceSelectorType": "strictReplicaGroup"
},
"upsertConfig": {
"mode": "FULL",
"enableDeletedKeysCompactionConsistency": false,
"allowPartialUpsertConsumptionDuringCommit": false,
"defaultPartialUpsertStrategy": "OVERWRITE",
"upsertViewRefreshIntervalMs": 3000,
"newSegmentTrackingTimeMs": 10000,
"dropOutOfOrderRecord": false,
"hashFunction": "NONE",
"enableSnapshot": false,
"deletedKeysTTL": 0,
"enablePreload": false,
"consistencyMode": "NONE",
"metadataTTL": 0
},
"isDimTable": false
},
"schema": {
"enableColumnBasedNullHandling": false,
"dimensionFieldSpecs": [
{
"fieldType": "DIMENSION",
"name": "colInt",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-2147483648",
"defaultNullValue": -2147483648,
"singleValueField": true,
"transformFunction": null,
"dataType": "INT",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colIntMV",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-2147483648",
"defaultNullValue": -2147483648,
"singleValueField": false,
"transformFunction": null,
"dataType": "INT",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colFloat",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-Infinity",
"defaultNullValue": "-Infinity",
"singleValueField": true,
"transformFunction": null,
"dataType": "FLOAT",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colFloatMV",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-Infinity",
"defaultNullValue": "-Infinity",
"singleValueField": false,
"transformFunction": null,
"dataType": "FLOAT",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colString",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "null",
"defaultNullValue": "null",
"singleValueField": true,
"transformFunction": null,
"dataType": "STRING",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colStringMV",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "null",
"defaultNullValue": "null",
"singleValueField": false,
"transformFunction": null,
"dataType": "STRING",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colBytes",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "",
"defaultNullValue": "",
"singleValueField": true,
"transformFunction": null,
"dataType": "BYTES",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colLong",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-9223372036854775808",
"defaultNullValue": -9223372036854776000,
"singleValueField": true,
"transformFunction": null,
"dataType": "LONG",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colLongMV",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-9223372036854775808",
"defaultNullValue": -9223372036854776000,
"singleValueField": false,
"transformFunction": null,
"dataType": "LONG",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colDouble",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-Infinity",
"defaultNullValue": "-Infinity",
"singleValueField": true,
"transformFunction": null,
"dataType": "DOUBLE",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "DIMENSION",
"name": "colDoubleMV",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-Infinity",
"defaultNullValue": "-Infinity",
"singleValueField": false,
"transformFunction": null,
"dataType": "DOUBLE",
"maxLength": 512,
"notNull": false
}
],
"metricFieldSpecs": [
{
"fieldType": "METRIC",
"singleValueField": true,
"name": "colDoubleMetric",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "0.0",
"defaultNullValue": 0,
"transformFunction": null,
"dataType": "DOUBLE",
"maxLength": 512,
"notNull": false
},
{
"fieldType": "METRIC",
"singleValueField": true,
"name": "colFloatMetric",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "0.0",
"defaultNullValue": 0,
"transformFunction": null,
"dataType": "FLOAT",
"maxLength": 512,
"notNull": false
}
],
"dateTimeFieldSpecs": [],
"timeFieldSpec": {
"fieldType": "TIME",
"name": "colTime",
"incomingGranularitySpec": {
"name": "colTime",
"timeUnitSize": 1,
"timeType": "DAYS",
"timeFormat": "EPOCH",
"dataType": "LONG"
},
"outgoingGranularitySpec": {
"name": "colTime",
"timeUnitSize": 1,
"timeType": "DAYS",
"timeFormat": "EPOCH",
"dataType": "LONG"
},
"singleValueField": true,
"dataType": "LONG",
"maxLengthExceedStrategy": null,
"virtualColumnProvider": null,
"defaultNullValueString": "-9223372036854775808",
"defaultNullValue": -9223372036854776000,
"transformFunction": null,
"maxLength": 512,
"notNull": false
},
"complexFieldSpecs": [],
"primaryKeyColumns": [
"colString"
],
"schemaName": "restletTable_UPSERT"
}
}