GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/21011
[SPARK-23916][SQL] Add array_join function
## What changes were proposed in this pull request?
The PR adds the SQL function `array_join`. The behavior of the function is
based on Presto's one.
The function accepts an `array` of `string` which is to be joined, a
`string` which is the delimiter to use between the items of the first argument
and optionally a `string` which is used to replace `null` values.
## How was this patch tested?
added UTs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-23916
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21011.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 #21011
----
commit 1408cfcd8f0ad2a571d29b57d71128584ea4b4f0
Author: Marco Gaido <marcogaido91@...>
Date: 2018-04-09T16:16:43Z
[SPARK-23916][SQL] Add array_join function
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]