Aditya Verma
01/03/2025, 11:13 AM{"code":400,"error":"The upsert table cannot have star-tree index."} occurs because Apache Pinot does not support Star-Tree Indexes in tables configured for Upserts. The reason is that upsert operations require real-time updates to primary key-based records, whereas Star-Tree Indexes are pre-aggregated and immutable after segment creation, making them incompatible with upsert functionality.Gonzalo Ortiz
01/03/2025, 2:54 PMGonzalo Ortiz
01/03/2025, 2:54 PMAditya Verma
01/04/2025, 6:38 PMAditya Verma
01/04/2025, 6:38 PMGonzalo Ortiz
01/07/2025, 7:59 AMAditya Verma
01/07/2025, 8:00 AMGonzalo Ortiz
01/07/2025, 8:01 AMAditya Verma
01/07/2025, 8:02 AMAditya Verma
01/07/2025, 8:03 AM"communityCards": [
{
"card_suit": "HEART",
"card_value": 10
},
{
"card_suit": "SPADE",
"card_value": 2
},
{
"card_suit": "HEART",
"card_value": 5
},
{
"card_suit": "SPADE",
"card_value": 10
},
{
"card_suit": "CLUB",
"card_value": 9
}
]
"communityCard": {
"maxLevels": 2,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
},
].
I am not able to understand the MaxLevels here can you explain what does it mean ?Aditya Verma
01/07/2025, 8:06 AM"winnerDetails": [
{
"winnerUserId": 12121,
"winnerUserName": "user12121"
}
],Gonzalo Ortiz
01/07/2025, 8:06 AMwinnerDetails.0.winnerUserId=12121
winnerDetails.0.winnerUserId="user12121"Gonzalo Ortiz
01/07/2025, 8:07 AMAditya Verma
01/07/2025, 8:08 AM"communityCards": [
{
"card_suit": "HEART",
"card_value": 10
},
{
"card_suit": "SPADE",
"card_value": 2
},
{
"card_suit": "HEART",
"card_value": 5
},
{
"card_suit": "SPADE",
"card_value": 10
},
{
"card_suit": "CLUB",
"card_value": 9
}
]Aditya Verma
01/07/2025, 8:10 AMGonzalo Ortiz
01/07/2025, 8:14 AMAditya Verma
01/07/2025, 8:18 AM"communityCards": [
{
"card_suit": "HEART",
"card_value": 10
},
{
"card_suit": "SPADE",
"card_value": 2
},
{
"card_suit": "HEART",
"card_value": 5
},
{
"card_suit": "SPADE",
"card_value": 10
},
{
"card_suit": "CLUB",
"card_value": 9
}
]Aditya Verma
01/07/2025, 8:23 AMGonzalo Ortiz
01/07/2025, 8:25 AMGonzalo Ortiz
01/07/2025, 8:25 AMAditya Verma
01/07/2025, 8:32 AMAditya Verma
01/07/2025, 8:32 AM{
"tableName": "user_stream_primary_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"timeColumnName": "last_login",
"minimizeDataMovement": false,
"schemaName": "user_stream_primary",
"replication": "1",
"replicasPerPartition": "1"
},
"tenants": {
"broker": "DefaultTenant",
"server": "DefaultTenant",
"tagOverrideConfig": {}
},
"tableIndexConfig": {
"autoGeneratedInvertedIndex": false,
"enableDynamicStarTreeCreation": false,
"columnMajorSegmentBuilderEnabled": true,
"optimizeDictionaryForMetrics": false,
"noDictionarySizeRatioThreshold": 0.85,
"varLengthDictionaryColumns": [],
"rangeIndexVersion": 2,
"loadMode": "MMAP",
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "user_stream_primary",
"stream.kafka.broker.list": "localhost:9092",
"stream.kafka.consumer.type": "lowlevel",
"stream.kafka.consumer.prop.auto.offset.reset": "smallest",
"stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory",
"stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"realtime.segment.flush.threshold.rows": "0",
"realtime.segment.flush.threshold.segment.rows": "0",
"realtime.segment.flush.threshold.time": "24h",
"realtime.segment.flush.threshold.segment.size": "100M"
},
"enableDefaultStarTree": false,
"aggregateMetrics": false,
"nullHandlingEnabled": false,
"optimizeDictionary": false,
"onHeapDictionaryColumns": [],
"rangeIndexColumns": [],
"sortedColumn": [],
"bloomFilterColumns": [],
"invertedIndexColumns": [],
"noDictionaryColumns": [],
"createInvertedIndexDuringSegmentGeneration": false,
"jsonIndexConfigs": {
"winnerDetail": {
"maxLevels": -1,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
},
"card": {
"maxLevels": -1,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
},
"communityCard": {
"maxLevels": -1,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
}
}
},
"metadata": {},
"quota": {},
"routing": {
"instanceSelectorType": "strictReplicaGroup"
},
"query": {},
"upsertConfig": {
"mode": "FULL",
"defaultPartialUpsertStrategy": "OVERWRITE",
"upsertViewRefreshIntervalMs": 3000,
"hashFunction": "NONE",
"enablePreload": false,
"consistencyMode": "NONE",
"enableSnapshot": false,
"metadataTTL": 0,
"deletedKeysTTL": 0,
"dropOutOfOrderRecord": false,
"allowPartialUpsertConsumptionDuringCommit": false
},
"ingestionConfig": {
"continueOnError": false,
"rowTimeValueCheck": false,
"transformConfigs": [
{
"columnName": "userstr",
"transformFunction": "json_format(person)"
}
],
"segmentTimeValueCheck": true
},
"isDimTable": false
}Aditya Verma
01/07/2025, 8:33 AM"jsonIndexConfigs": {
"winnerDetail": {
"maxLevels": -1,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
},
"card": {
"maxLevels": -1,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
},
"communityCard": {
"maxLevels": -1,
"excludeArray": false,
"disableCrossArrayUnnest": true,
"includePaths": null,
"excludePaths": null,
"excludeFields": null,
"indexPaths": null
}
}
@Gonzalo Ortiz