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-23931) High-order function: zip(array1, array2[, ...]) → array<row>
Date Fri, 11 May 2018 16:02:00 GMT

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

Marek Novotny commented on SPARK-23931:
---------------------------------------

Ok. Good luck!

> High-order function: zip(array1, array2[, ...]) → array<row>
> ------------------------------------------------------------
>
>                 Key: SPARK-23931
>                 URL: https://issues.apache.org/jira/browse/SPARK-23931
>             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/array.html
> Merges the given arrays, element-wise, into a single array of rows. The M-th element
of the N-th argument will be the N-th field of the M-th output element. If the arguments have
an uneven length, missing values are filled with NULL.
> {noformat}
> SELECT zip(ARRAY[1, 2], ARRAY['1b', null, '3b']); -- [ROW(1, '1b'), ROW(2, null), ROW(null,
'3b')]
> {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