[ https://issues.apache.org/jira/browse/SPARK-23931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510079#comment-16510079 ]
Marco Gaido commented on SPARK-23931: ------------------------------------- I just edited the title/description in order to update to the new name we used for the function. Please revert my changes if you consider them inappropriate. > High-order function: array_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 > Assignee: Dylan Guedes > Priority: Major > Fix For: 2.4.0 > > > 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 array_zip(ARRAY[1, 2], ARRAY['1b', null, '3b']); -- [ROW(1, '1b'), > ROW(2, null), ROW(null, '3b')] > {noformat} > Note: while Presto's function name is {{zip}}, we used {{array_zip}} as name. > For details please check the discussion in the PR. -- 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