Dandandan opened a new issue, #14475: URL: https://github.com/apache/datafusion/issues/14475
### Is your feature request related to a problem or challenge? `sort_batch` always uses multi column sort by sorting first to indices and then sorting the batch. See: https://github.com/apache/datafusion/blob/ea788c72dddf24acd8dc8068cede939e11dfab84/datafusion/physical-plan/src/sorts/sort.rs#L628 We can use https://arrow.apache.org/rust/arrow/compute/fn.sort_limit.html instead ### Describe the solution you'd like For single row case, sort the batch directly instead of sorting multiple columns. ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
