scottlan0113 commented on code in PR #20366:
URL: https://github.com/apache/pinot/pull/20366#discussion_r4711826782


##########
pinot-core/src/main/java/org/apache/pinot/core/util/GroupByUtils.java:
##########
@@ -584,7 +584,8 @@ public static IndexedTable 
createIndexedTableForCombineOperator(GroupByResultsBl
         resultSize = trimSize;
       } else {
         // TODO: Keeping only 'LIMIT' groups can cause inaccurate result 
because the groups are randomly selected
-        //       without ordering. Consider ordering on group-by columns if no 
ordering is specified.
+        //       without ordering. The single-stage broker orders such a query 
on its group-by columns when its LIMIT
+        //       is below the sort aggregate limit threshold 
(OrderByGroupKeysRewriter). Consider a larger LIMIT too.

Review Comment:
   Thanks, leaving this out of this PR.



-- 
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]

Reply via email to