Jackie-Jiang commented on code in PR #9086:
URL: https://github.com/apache/pinot/pull/9086#discussion_r936061830


##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/CountAggregationFunction.java:
##########
@@ -89,7 +122,33 @@ public void aggregate(int length, AggregationResultHolder 
aggregationResultHolde
   @Override
   public void aggregateGroupBySV(int length, int[] groupKeyArray, 
GroupByResultHolder groupByResultHolder,
       Map<ExpressionContext, BlockValSet> blockValSetMap) {
-    if (blockValSetMap.isEmpty()) {
+    if (blockValSetMap.isEmpty() || 
!blockValSetMap.containsKey(STAR_TREE_COUNT_STAR_EXPRESSION)) {

Review Comment:
   I think I find the reason. When null handling is not enabled, ideally 
`getInputExpressions()` should return empty list to preserve the existing 
behavior, which is changed because we changed it to extend 
`BaseSingleInputAggregationFunction`. Since most methods in 
`BaseSingleInputAggregationFunction` cannot be reused, suggest not extending 
it, and keep the existing behavior when null handling is not enabled



-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to