spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Novotny (JIRA)" <>
Subject [jira] [Created] (SPARK-23821) Collection functions: flatten
Date Thu, 29 Mar 2018 17:00:00 GMT
Marek Novotny created SPARK-23821:

             Summary: Collection functions: flatten
                 Key: SPARK-23821
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: Marek Novotny

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

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message