frankgrimes97 commented on code in PR #13887:
URL: https://github.com/apache/druid/pull/13887#discussion_r1134720187


##########
extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/tuple/ArrayOfDoublesSketchMergeAggregator.java:
##########
@@ -58,12 +58,20 @@ public ArrayOfDoublesSketchMergeAggregator(
   @Override
   public void aggregate()
   {
-    final ArrayOfDoublesSketch update = selector.getObject();
+    final Object update = selector.getObject();
     if (update == null) {
       return;
     }
+    final ArrayOfDoublesSketch sketch;
+    if (update instanceof ArrayOfDoublesSketch) {

Review Comment:
   Ah, I didn't know that `COMPLEX_DECODE_BASE64` function even existed! Is it 
documented? (I only seem to find references to it in some unit tests)
   
   In any case, the changes to `ArrayOfDoublesSketchMergeAggregator` are no 
longer required after I updated the unit test to use `COMPLEX_DECODE_BASE64`:
     
https://github.com/apache/druid/pull/13887/commits/2a4b4715ed8e8bf5f8b21617412437551435d95c
   



-- 
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