alamb commented on a change in pull request #9722:
URL: https://github.com/apache/arrow/pull/9722#discussion_r595072837
##########
File path: rust/arrow/src/compute/kernels/sort.rs
##########
@@ -322,6 +347,10 @@ pub struct SortOptions {
pub descending: bool,
/// Whether to sort nulls first
pub nulls_first: bool,
+ /// If Some(limit), only first `limit` elements in the sort order
+ /// in the output. Any data data after the limit will be
+ /// discarded.
+ pub limit: Option<usize>,
Review comment:
Here is the proposal
----------------------------------------------------------------
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:
[email protected]