You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/05/23 22:52:25 UTC
[GitHub] [pinot] Jackie-Jiang commented on pull request #8758: Improve accuracy of aggregate group-by without order-by queries by adding a query rewriter to convert aggregate group-by only queries to add order-by
Jackie-Jiang commented on PR #8758:
URL: https://github.com/apache/pinot/pull/8758#issuecomment-1135212171
This solution can cause big performance impact on existing non-order-by queries if enabled.
I'd suggest directly enhancing the query engine for group-by queries without order-by on aggregations. In the query executor:
1. Implicitly order-by the group-by columns not included in the order-by if the explicit order-by clause have the same value for 2 groups
2. If there is no aggregation in the order-by clause, we don't need to keep more groups than the `LIMIT`. We should make a priority queue + map solution to only keep track of the top `LIMIT` groups. This solution can always give the accurate result, but without adding too much overhead
--
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-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org