spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Novotny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-23935) High-order function: map_entries(map<K, V>) → array<row<K,V>>
Date Fri, 27 Apr 2018 12:03:00 GMT

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

Marek Novotny commented on SPARK-23935:
---------------------------------------

I will work on this one. Thanks.

> 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
>            Priority: Major
>
> 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


Mime
View raw message