Dugi Sarma
07/06/2023, 2:15 PMselect name, count(name) from table group by 1
we have around 2 million distinct names.
ThanksDugi Sarma
07/06/2023, 2:16 PM{
"OFFLINE": {
"tableName": "table_OFFLINE",
"tableType": "OFFLINE",
"segmentsConfig": {
"schemaName": "table",
"replication": "1",
"replicasPerPartition": "1",
"minimizeDataMovement": false,
"segmentPushType": "APPEND",
"timeColumnName": "timestamp_ms",
"segmentPushFrequency": "HOURLY"
},
"tenants": {
"broker": "DefaultTenant",
"server": "DefaultTenant"
},
"tableIndexConfig": {
"invertedIndexColumns": [],
"noDictionaryColumns": [],
"onHeapDictionaryColumns": [],
"varLengthDictionaryColumns": [],
"enableDefaultStarTree": false,
"starTreeIndexConfigs": [
{
"dimensionsSplitOrder": [
"name"
],
"skipStarNodeCreationForDimensions": [],
"functionColumnPairs": [
"COUNT__name"
],
"maxLeafRecords": 10000
}
],
"enableDynamicStarTreeCreation": true,
"aggregateMetrics": true,
"nullHandlingEnabled": false,
"optimizeDictionary": true,
"optimizeDictionaryForMetrics": true,
"noDictionarySizeRatioThreshold": 0.85,
"rangeIndexColumns": [],
"rangeIndexVersion": 2,
"autoGeneratedInvertedIndex": false,
"createInvertedIndexDuringSegmentGeneration": false,
"sortedColumn": [],
"bloomFilterColumns": [],
"loadMode": "MMAP"
},
"metadata": {},
"quota": {},
"routing": {},
"query": {},
"fieldConfigList": [
{
"name": "name",
"encodingType": "RAW",
"indexType": "TEXT",
"indexTypes": [
"TEXT"
],
"indexes": null,
"tierOverwrites": null
},
{
"name": "timestamp_ms",
"encodingType": "DICTIONARY",
"indexType": "TIMESTAMP",
"indexTypes": [
"TIMESTAMP"
],
"timestampConfig": {
"granularities": [
"DAY",
"WEEK"
]
},
"indexes": null,
"tierOverwrites": null
}
],
"ingestionConfig": {
"transformConfigs": [
{
"columnName": "timestamp_ms",
"transformFunction": "ToDateTime(\"timestamp_unix\", 'yyyy-MM-dd hh:mm:ss')"
}
],
"continueOnError": false,
"rowTimeValueCheck": false,
"segmentTimeValueCheck": true
},
"isDimTable": false
}
}Mayank