nealrichardson opened a new pull request #11405: URL: https://github.com/apache/arrow/pull/11405
* Uses SelectKSinkNode for head/tail on sorted query. tail() is implemented by reversing the sort orders, taking the top K rows, and then reversing the resulting row order to match as if we had taken the (ordered) bottom K rows. * Some subtle differences in expectation: row order appears to be locally deterministic (within chunks), but SelectK doesn't necessarily follow that when there are ties. Also, missing value handling by SelectK doesn't match R's expectations--there may be a sort option that isn't handled the same way in the SelectK algorithm (I don't see anywhere else to pass in another option but maybe I missed it) -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org