Aditya Verma
01/01/2025, 8:50 AM{
"REALTIME": {
"tableName": "game_user_stream_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"replicasPerPartition": "1",
"schemaName": "game_user_stream",
"replication": "1",
"timeColumnName": "gameStartTimestamp",
"minimizeDataMovement": false
},
"tenants": {
"broker": "DefaultTenant",
"server": "DefaultTenant",
"tagOverrideConfig": {}
},
"tableIndexConfig": {
"createInvertedIndexDuringSegmentGeneration": false,
"autoGeneratedInvertedIndex": false,
"enableDynamicStarTreeCreation": false,
"columnMajorSegmentBuilderEnabled": true,
"optimizeDictionaryForMetrics": false,
"noDictionarySizeRatioThreshold": 0.85,
"varLengthDictionaryColumns": [],
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "game_user_stream",
"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": "500000",
"realtime.segment.flush.threshold.segment.rows": "0",
"realtime.segment.flush.threshold.time": "24h",
"realtime.segment.flush.threshold.segment.size": "0"
},
"rangeIndexVersion": 2,
"loadMode": "MMAP",
"enableDefaultStarTree": false,
"aggregateMetrics": false,
"nullHandlingEnabled": false,
"optimizeDictionary": false,
"invertedIndexColumns": [
"handId"
],
"noDictionaryColumns": [],
"bloomFilterColumns": [],
"onHeapDictionaryColumns": [],
"rangeIndexColumns": [],
"sortedColumn": []
},
"metadata": {},
"quota": {},
"routing": {
"instanceSelectorType": "strictReplicaGroup"
},
"query": {},
"upsertConfig": {
"mode": "FULL",
"allowPartialUpsertConsumptionDuringCommit": false,
"defaultPartialUpsertStrategy": "OVERWRITE",
"upsertViewRefreshIntervalMs": 3000,
"metadataTTL": 0,
"dropOutOfOrderRecord": false,
"enableSnapshot": false,
"deletedKeysTTL": 0,
"enablePreload": false,
"consistencyMode": "NONE",
"hashFunction": "NONE"
},
"ingestionConfig": {
"continueOnError": false,
"rowTimeValueCheck": false,
"segmentTimeValueCheck": true,
"transformConfigs": [
{
"columnName": "winnerDetail",
"transformFunction": "json_format(WinnerDetails)"
},
{
"columnName": "communityCard",
"transformFunction": "json_format(communityCards)"
},
{
"columnName": "card",
"transformFunction": "json_format(cards)"
}
]
},
"isDimTable": false
}
}
but when I fetch the segments there is no indexing in the segments . Do i need to rebuild all my segments everytime I do indexing anywhere ?
below is my segment snippet.
"game_user_stream__0__9__20241231T0932Z" : {
"segmentName" : "game_user_stream__0__9__20241231T0932Z",
"schemaName" : null,
"crc" : 3700427099,
"creationTimeMillis" : 1735637566989,
"creationTimeReadable" : "2024-12-31T09:32:46:989 UTC",
"timeColumn" : "gameStartTimestamp",
"timeUnit" : "MILLISECONDS",
"timeGranularitySec" : 0,
"startTimeMillis" : 1725136885,
"startTimeReadable" : "1970-01-20T23:12:16.885Z",
"endTimeMillis" : 1725136885,
"endTimeReadable" : "1970-01-20T23:12:16.885Z",
"segmentVersion" : "v3",
"creatorName" : null,
"totalDocs" : 500000,
"custom" : { },
"startOffset" : "4500000",
"endOffset" : "5000000",
"columns" : [ ],
"indexes" : { },
"star-tree-index" : null
}Xiang Fu
Aditya Verma
01/01/2025, 8:52 AMXiang Fu
Aditya Verma
01/01/2025, 8:56 AMAditya Verma
01/01/2025, 8:57 AMXiang Fu
Xiang Fu
Aditya Verma
01/01/2025, 9:03 AM{
"estimatedTimeRemainingInMinutes": 0,
"metadata": {
"jobId": "827c4b1a-ca0b-4735-bf56-ca40e4c6d214",
"messageCount": "1",
"submissionTimeMs": "1735721708210",
"jobType": "RELOAD_SEGMENT",
"tableName": "game_user_stream_REALTIME"
},
"successCount": 75,
"totalSegmentCount": 75,
"totalServersQueried": 1,
"totalServerCallsFailed": 0,
"timeElapsedInMinutes": 8.291516666666666
}Aditya Verma
01/01/2025, 9:03 AMAditya Verma
01/01/2025, 9:04 AMAditya Verma
01/01/2025, 9:04 AM"star-tree-index" : null
},
"game_user_stream__0__17__20241231T0935Z" : {
"segmentName" : "game_user_stream__0__17__20241231T0935Z",
"schemaName" : null,
"crc" : 3114240630,
"creationTimeMillis" : 1735637719933,
"creationTimeReadable" : "2024-12-31T09:35:19:933 UTC",
"timeColumn" : "gameStartTimestamp",
"timeUnit" : "MILLISECONDS",
"timeGranularitySec" : 0,
"startTimeMillis" : 1725136885,
"startTimeReadable" : "1970-01-20T23:12:16.885Z",
"endTimeMillis" : 1725136885,
"endTimeReadable" : "1970-01-20T23:12:16.885Z",
"segmentVersion" : "v3",
"creatorName" : null,
"totalDocs" : 500000,
"custom" : { },
"startOffset" : "8500000",
"endOffset" : "9000000",
"columns" : [ ],
"indexes" : { },
"star-tree-index" : null
},
"game_user_stream__0__9__20241231T0932Z" : {
"segmentName" : "game_user_stream__0__9__20241231T0932Z",
"schemaName" : null,
"crc" : 3700427099,
"creationTimeMillis" : 1735637566989,
"creationTimeReadable" : "2024-12-31T09:32:46:989 UTC",
"timeColumn" : "gameStartTimestamp",
"timeUnit" : "MILLISECONDS",
"timeGranularitySec" : 0,
"startTimeMillis" : 1725136885,
"startTimeReadable" : "1970-01-20T23:12:16.885Z",
"endTimeMillis" : 1725136885,
"endTimeReadable" : "1970-01-20T23:12:16.885Z",
"segmentVersion" : "v3",
"creatorName" : null,
"totalDocs" : 500000,
"custom" : { },
"startOffset" : "4500000",
"endOffset" : "5000000",
"columns" : [ ],
"indexes" : { },
"star-tree-index" : null
}Aditya Verma
01/01/2025, 9:04 AM"indexes" : { },
"star-tree-index" : nullAditya Verma
01/01/2025, 9:05 AMAditya Verma
01/01/2025, 9:05 AMAditya Verma
01/01/2025, 9:05 AMAditya Verma
01/01/2025, 9:15 AM"createInvertedIndexDuringSegmentGeneration": true,
"autoGeneratedInvertedIndex": true,
Still I dont see index while retreiving the metadata
"game_user_stream__0__3__20250101T0915Z" : {
"segmentName" : "game_user_stream__0__3__20250101T0915Z",
"schemaName" : null,
"crc" : 93990260,
"creationTimeMillis" : 1735722922293,
"creationTimeReadable" : "2025-01-01T09:15:22:293 UTC",
"timeColumn" : "gameStartTimestamp",
"timeUnit" : "MILLISECONDS",
"timeGranularitySec" : 0,
"startTimeMillis" : 1735136865,
"startTimeReadable" : "1970-01-21T01:58:56.865Z",
"endTimeMillis" : 1735136865,
"endTimeReadable" : "1970-01-21T01:58:56.865Z",
"segmentVersion" : "v3",
"creatorName" : null,
"totalDocs" : 500000,
"custom" : { },
"startOffset" : "1500000",
"endOffset" : "2000000",
"columns" : [ ],
"indexes" : { },
"star-tree-index" : null
}Xiang Fu
Aditya Verma
01/01/2025, 9:20 AMXiang Fu
Xiang Fu
Aditya Verma
01/01/2025, 9:28 AMAditya Verma
01/01/2025, 9:28 AMAditya Verma
01/01/2025, 9:28 AMXiang Fu
Aditya Verma
01/01/2025, 9:39 AMAditya Verma
01/01/2025, 9:40 AM"createInvertedIndexDuringSegmentGeneration": true,
"autoGeneratedInvertedIndex": true,Aditya Verma
01/01/2025, 9:40 AMAditya Verma
01/01/2025, 9:40 AMXiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
Aditya Verma
01/01/2025, 10:00 AM