medwards opened a new pull request #236: URL: https://github.com/apache/arrow-rs/pull/236
Closes #235 # What changes are included in this PR? The result slice in `sort_primitive` is the size of all the values being sorted even when a limit is provided. Change the size to be the maximum possible result (thus avoiding the panic in #235) # Are there any user-facing changes? No ### Notes I've provided a reproducing test, but skipped other variants of limits /w nulls. Those should be easy so let me know if they're of interest. Additionally it is possible that `result` is intentionally over-large in which case I can try alternative fixes. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org