Hi I added upsert configuration in pinot table.
"primaryKeyColumns": [
"DEVICE"
]
"upsertConfig": {
"mode": "FULL",
"dropOutOfOrderRecord": true,
"hashFunction": "NONE",
"defaultPartialUpsertStrategy": "OVERWRITE",
"enableSnapshot": true,
"metadataTTL": 0,
"deletedKeysTTL": 0,
"enablePreload": true
},
"routing": {
"instanceSelectorType": "strictReplicaGroup"
}
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "topic_name",
"stream.kafka.broker.list": "kafka_broker",
"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.time": "1h",
"realtime.segment.flush.threshold.segment.size": "100M"
},
select count(*) as c, device from table_name group by device order by c desc limit 10
Im getting output's more than 1.
help me out plz