siddharthteotia commented on a change in pull request #5798:
URL: https://github.com/apache/incubator-pinot/pull/5798#discussion_r465201499
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/DistinctCountThetaSketchAggregationFunction.java
##########
@@ -387,12 +386,17 @@ public void aggregateGroupByMV(int length, int[][]
groupKeysArray, GroupByResult
public Map<String, Sketch> extractAggregationResult(AggregationResultHolder
aggregationResultHolder) {
Map<Predicate, Union> unionMap = aggregationResultHolder.getResult();
if (unionMap == null || unionMap.isEmpty()) {
- return Collections.emptyMap();
+ return null;
Review comment:
Is the caller already good with null? I mean it doesn't have to be
changed to handle null return from this function?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]