xiangfu0 commented on code in PR #17284:
URL: https://github.com/apache/pinot/pull/17284#discussion_r2580770713


##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/DistinctCountULLAggregationFunction.java:
##########
@@ -309,7 +314,12 @@ public void aggregateGroupByMV(int length, int[][] 
groupKeysArray, GroupByResult
   public UltraLogLog extractAggregationResult(AggregationResultHolder 
aggregationResultHolder) {
     Object result = aggregationResultHolder.getResult();
     if (result == null) {
-      return UltraLogLog.create(_p);
+      if (_aggregateOnRawValues) {
+        return UltraLogLog.create(_p);
+      }
+      // Here we cannot directly return a default UltraLogLog object, as if 
the input is ULL bytes, which may use a
+      // different _p, then the ULL object merge will fail.
+      return null;

Review Comment:
   then it requires users to explicitly specify the argument p in the function 
call



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