Skip to content

Add support for list_sort #109

Closed

Description

@alamb

Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-10355

I.e. sorts the elements of an list array according to some ordering, as we have for array values.

Activity

  1. alamb commented on Apr 26, 2021

    @alamb
    ContributorAuthor

    Comment from Ruihang Xia(Ruihang Xia) @ 2020-11-11T14:11:46.604+0000:

    Hi, I'm quite interested in this. But not very sure about what this issue exactly wants. 
    
    I think it requests a function like `{{fn list_sort( Vec, Options ) -> Vec}}`, which takes every element in the same position of each array as a unit when sorting. Like performing `ORDER BY` over a table.
    
    Please let me know if this is wrong, thanks!

    Comment from Jorge Leitão(jorgecarleitao) @ 2020-11-14T07:31:24.534+0000:

    Hi [~Ruihang Xia], the idea was to have the equivalent behavior of spark's [https://spark.apache.org/docs/latest/api/sql/index.html#array_sort]
    
    I.e. when we have an array of lists (ListArray), sort each of the lists on the array.
    
    Does it make sense?

    Comment from Ruihang Xia(Ruihang Xia) @ 2020-12-06T17:24:21.666+0000:

    Hi [~jorgecarleitao], sorry for the late reply.
    
    I submit a draft [pr|https://github.com/apache/arrow/pull/8856] with some questions. May I ask for your time and advice about that? Appreciate it :D.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions