Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20938#discussion_r179970092
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -3300,6 +3300,14 @@ object functions {
        */
       def sort_array(e: Column, asc: Boolean): Column = withExpr { 
SortArray(e.expr, lit(asc).expr) }
     
    +  /**
    +   * Creates a single array from an array of arrays. If a structure of 
nested arrays is deeper than
    +   * two levels, only one level of nesting is removed.
    +   * @group collection_funcs
    +   * @since 2.4.0
    +   */
    +  def flatten(e: Column): Column = withExpr{ Flatten(e.expr) }
    --- End diff --
    
    `r{` -> `r {`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to