aharbunou-branch opened a new issue, #13873:
URL: https://github.com/apache/druid/issues/13873

   ### 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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to