asdf2014 commented on code in PR #15162:
URL: https://github.com/apache/druid/pull/15162#discussion_r1379671744
##########
extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/hll/HllSketchToEstimatePostAggregator.java:
##########
@@ -97,7 +97,11 @@ public Comparator<Double> getComparator()
@Override
public Object compute(final Map<String, Object> combinedAggregators)
{
- final HllSketchHolder holder =
HllSketchHolder.fromObj(field.compute(combinedAggregators));
+ Object hllSketchHolderObject = field.compute(combinedAggregators);
+ if (hllSketchHolderObject == null) {
+ return 0.0d;
Review Comment:
```suggestion
return 0.0D;
```
--
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]