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

[jira] [Resolved] (SPARK-23821) High-order function: flatten(x) → array

     [ https://issues.apache.org/jira/browse/SPARK-23821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Takuya Ueshin resolved SPARK-23821.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 20938
[https://github.com/apache/spark/pull/20938]

> High-order function: flatten(x) → array
> ---------------------------------------
>
>                 Key: SPARK-23821
>                 URL: https://issues.apache.org/jira/browse/SPARK-23821
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Marek Novotny
>            Assignee: Marek Novotny
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Add the flatten function that transforms an Array of Arrays column into an Array elements column. if the array structure contains more than two levels of nesting, the function removes one nesting level
> Example:
> {{flatten(array(array(1, 2, 3), array(3, 4, 5), array(6, 7, 8)) => [1,2,3,4,5,6,7,8,9]}}



--
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