Skip to content

Add support for list_sort #109

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
alamb opened this issue Apr 26, 2021 · 1 comment · Fixed by #8279
Closed

Add support for list_sort #109

alamb opened this issue Apr 26, 2021 · 1 comment · Fixed by #8279
Labels
datafusion Changes in the datafusion crate

Comments

@alamb
Copy link
Contributor

alamb commented Apr 26, 2021

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.

@alamb alamb added the datafusion Changes in the datafusion crate label Apr 26, 2021
@alamb
Copy link
Contributor Author

alamb commented Apr 26, 2021

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant