gortiz commented on code in PR #14211:
URL: https://github.com/apache/pinot/pull/14211#discussion_r1796977724
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MultistageGroupByExecutor.java:
##########
@@ -241,6 +241,11 @@ private void processAggregate(TransferableBlock block) {
aggFunction.aggregateGroupBySV(numMatchedRows, filteredIntKeys,
groupByResultHolder, blockValSetMap);
}
}
+ if (intKeys == null) {
+ // _groupIdGenerator should still have all the groups even if there
are only filtered aggregates for SQL
+ // compliant results.
+ generateGroupByKeys(block);
+ }
Review Comment:
Wouldn't be semantically the same to always initialize `intKeys` to
`generateGroupByKeys(block);` in line 209?
--
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]