Skip to content

Optimize sort_batch for single column case #14475

@Dandandan

Description

@Dandandan

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:

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions