You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2018/10/25 16:59:00 UTC

[jira] [Commented] (SPARK-23935) High-order function: map_entries(map) → array>

    [ https://issues.apache.org/jira/browse/SPARK-23935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16664018#comment-16664018 ] 

Dongjoon Hyun commented on SPARK-23935:
---------------------------------------

Hi, All.
Unfortunately, this will be remmoved in `branch-2.4.` It's safe in `master` and Spark 3.0.0. Please see RC4 email threads and the following.
- https://github.com/apache/spark/pull/22821

> High-order function: map_entries(map<K, V>) → array<row<K,V>>
> -------------------------------------------------------------
>
>                 Key: SPARK-23935
>                 URL: https://issues.apache.org/jira/browse/SPARK-23935
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Xiao Li
>            Assignee: Marek Novotny
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Ref: https://prestodb.io/docs/current/functions/map.html
> Returns an array of all entries in the given map.
> {noformat}
> SELECT map_entries(MAP(ARRAY[1, 2], ARRAY['x', 'y'])); -- [ROW(1, 'x'), ROW(2, 'y')]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org