Jackie-Jiang commented on code in PR #9086: URL: https://github.com/apache/pinot/pull/9086#discussion_r936084521
########## 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: Applied a commit to demonstrate the idea: https://github.com/apache/pinot/pull/9086/commits/b6845345692bf0e1f3bb9bdd8f80d9eec606da8a Let's see if it can pass all the tests -- 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