[ https://issues.apache.org/jira/browse/SPARK-23933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16452404#comment-16452404 ]
Kazuaki Ishizaki commented on SPARK-23933: ------------------------------------------ Thank you for your comment. The current map can take the even number of arguments (e.g. 2, 4, 6, 8 ...) due to a pair of key and map. We can determine {{map(1.0, '2', 3.0, '4') or map(1.0, '2')}} should be behave as currently. How about {{map(ARRAY [1, 2], ARRAY ["a", "b"])}}? > High-order function: map(array<K>, array<V>) → map<K,V> > ------------------------------------------------------- > > Key: SPARK-23933 > URL: https://issues.apache.org/jira/browse/SPARK-23933 > 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 a map created using the given key/value arrays. > {noformat} > SELECT map(ARRAY[1,3], ARRAY[2,4]); -- {1 -> 2, 3 -> 4} > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org