GitHub user kiszk opened a pull request:
https://github.com/apache/spark/pull/21021
[SPARK-23916][SQL] Add array_sort function
## What changes were proposed in this pull request?
The PR adds the SQL function `array_sort`. The behavior of the function is
based on Presto's one.
The function sorts the input array in ascending order. The elements of the
input array must be orderable. Null elements will be placed at the end of the
returned array.
## How was this patch tested?
Added UTs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kiszk/spark SPARK-23921
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21021.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21021
----
commit 00ac4fb79422828c1bece06faf82396375001177
Author: Kazuaki Ishizaki <ishizaki@...>
Date: 2018-04-10T05:51:13Z
initial commit
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]