Jackie-Jiang opened a new pull request, #14664:
URL: https://github.com/apache/pinot/pull/14664

   Introduce `is_enable_group_trim` as an agg option to enable group trim in 
the leaf stage.
   Group trim can be enabled when there is order by and limit.
   
   E.g.
   ```
   SELECT /*+ aggOptions(is_partitioned_by_group_by_keys='true', 
is_enable_group_trim='true') */ {tbl1}.num, COUNT(*), SUM({tbl1}.val), 
SUM({tbl1}.num), COUNT(DISTINCT {tbl1}.val) FROM {tbl1} WHERE {tbl1}.val >= 0 
AND {tbl1}.name != 'a' GROUP BY {tbl1}.num ORDER BY COUNT(*) DESC LIMIT 1
   ```


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