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/02/22 01:28:55 UTC

[GitHub] [pinot] Jackie-Jiang commented on pull request #8228: Early terminate orderby when columns already sorted

Jackie-Jiang commented on pull request #8228:
URL: https://github.com/apache/pinot/pull/8228#issuecomment-1047343041


   > At the moment, getNexBlock has a conditional split for all/partially ordered columns (where computeAllOrdered is where all columns in select are also in the order by if I understand correctly )
   > 
   > If we introduce a case for when all orderBy columns are pre-sorted (early termination case) then wouldn't we again have a allOrdered/partialOrdered case within that as well?
   
   No. If all the order-by columns are sorted, we can simply pick the first `limit` docs without worrying about the optimization of partialOrdered case.


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