GitHub user mn-mikke opened a pull request:
https://github.com/apache/spark/pull/21282
[SPARK-23934][SQL] Adding map_from_entries function
## What changes were proposed in this pull request?
The PR adds the `map_from_entries` function that returns a map created from
the given array of entries.
## How was this patch tested?
New tests added into:
- `CollectionExpressionSuite`
- `DataFrameFunctionSuite`
## Note
The proposed behavior doesn't allow duplicated keys in contrast with `map`
function.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AbsaOSS/spark
feature/array-api-map_from_entries-to-master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21282.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 #21282
----
commit 8c6039c7b7f31f0343c4b0098a4e12dfff125128
Author: Marek Novotny <mn.mikke@...>
Date: 2018-05-07T12:23:18Z
[SPARK-23934][SQL] Adding map_from_entries function
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]