error:cannot_merge_diff_types: [HLLSketchBuild] and [HLLSketch]
Affected Version
25.0.0
Description
I'm migrating Druid from 0.18.1 to 25.0.0.
I use https://druid.apache.org/docs/latest/development/extensions-core/datasketches-hll.html#hllsketchmerge-aggregator module to work with hll sketches. I use kafka realtime ingestion and batch hadoop ingestion.
I noticed that after migrating to 25.0.0 query to get segment metadata returns error:cannot_merge_diff_types: [HLLSketchBuild] and [HLLSketch] .
I see this error when run query against broker whereas historical node (I have only one historical for this test) returns response without the error.
I suspect that there is an issue with realtime segment on middle manager side.
Segment metadata request
{
"queryType": "segmentMetadata",
"dataSource": "<name>",
"merge": true,
"lenientAggregatorMerge": true,
"context": {
"timeout": 60000
},
"analysisTypes": [
"aggregators"
]
}
Field with error message from broker
"sketch_field" : {
"typeSignature" : "STRING",
"type" : "STRING",
"hasMultipleValues" : false,
"hasNulls" : false,
"size" : -1,
"cardinality" : null,
"minValue" : null,
"maxValue" : null,
"errorMessage" : "error:cannot_merge_diff_types: [HLLSketchBuild] and [HLLSketch]"
Same field from historical node
"sketch_field" : {
"typeSignature" : "COMPLEX<HLLSketch>",
"type" : "HLLSketch",
"hasMultipleValues" : false,
"hasNulls" : true,
"size" : 0,
"cardinality" : null,
"minValue" : null,
"maxValue" : null,
"errorMessage" : null
}
Metric spec definition
"fieldName": "some_field",
"lgK": 16,
"name": "sketch_field",
"tgtHllType": "HLL_8",
"type": "HLLSketchBuild"
Could you please help with this issue?
This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.