Skip to content

Missing kernels for ordering with struct types #37087

@a-reich

Description

@a-reich

Describe the enhancement requested

Currently, using order-related pyarrow compute functions like min_max, array_sort_indices on a StructArray raises due to missing kernel.
Since a struct type is an ordered sequence of values with a fixed number of fields, whenever all the field types are orderable there is a natural way to order struct values lexicographically. I think this would be useful functionality, and is not easy for users to do themselves.
EDIT: in fact, semantically this is similar to Table.sort_by - maybe some of the implementation could even be reused?

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions