GitHub user mn-mikke opened a pull request:
https://github.com/apache/spark/pull/20938
[SPARK-23821][SQL] Collection function: flatten
## What changes were proposed in this pull request?
This PR adds a new collection function that transforms an array of arrays
into a single array. The PR comprises:
- An expression for flattening array structure
- Flatten function
- A wrapper for PySpark
## How was this patch tested?
New tests added into:
- CollectionExpressionsSuite
- DataFrameFunctionsSuite
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AbsaOSS/spark
feature/array-api-flatten-to-master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20938.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 #20938
----
commit 755d6db0cbec1b822e019c425aca258eb7b512a1
Author: mn-mikke <mrkaha12346github>
Date: 2018-03-26T08:40:51Z
[SPARK-23821][SQL] Collection function: flatten
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]