Jackie-Jiang commented on code in PR #17750:
URL: https://github.com/apache/pinot/pull/17750#discussion_r2843693342
##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/DistinctCountAggregationFunction.java:
##########
@@ -82,7 +82,7 @@ public ColumnDataType getFinalResultColumnType() {
@Override
public Integer extractFinalResult(Set intermediateResult) {
- return intermediateResult.size();
+ return intermediateResult == null ? 0 : intermediateResult.size();
Review Comment:
Sounds good. Let's match Postgres behavior
--
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]