GitHub user kiszk opened a pull request: https://github.com/apache/spark/pull/21258
[SPARK-23933][SQL] Add map_fromarray function ## What changes were proposed in this pull request? The PR adds the SQL function `map_fromarray`. The behavior of the function is based on Presto's `map`. Since SparkSQL already had a `map` function, we prepared the different name for this behavior. This function returns returns a map from a pair of arrays for keys and 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/kiszk/spark SPARK-23933 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21258.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 #21258 ---- commit 1ca1c4138ed83f5137768f51f131920ac5cc559e Author: Kazuaki Ishizaki <ishizaki@...> Date: 2018-05-07T09:05:51Z initial commit ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org