xiangfu0 commented on code in PR #18835:
URL: https://github.com/apache/pinot/pull/18835#discussion_r3457760166
##########
pinot-core/src/main/java/org/apache/pinot/core/operator/blocks/results/AggregationResultsBlock.java:
##########
@@ -97,7 +97,20 @@ public DataSchema getDataSchema() {
@Override
public List<Object[]> getRows() {
- return Collections.singletonList(_results.toArray());
+ if (!_queryContext.isServerReturnFinalResult()) {
+ return Collections.singletonList(_results.toArray());
Review Comment:
Create a follow up issue to convert all the usage and ban
`Collections.singletonList` usage ?
--
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]