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

    https://github.com/apache/spark/pull/21021#discussion_r182992892
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -2154,10 +2154,13 @@ def array_max(col):
     def sort_array(col, asc=True):
         """
         Collection function: sorts the input array in ascending or descending 
order according
    -    to the natural ordering of the array elements.
    +    to the natural ordering of the array elements. Null elements will be 
placed at the beginning
    +    of the returned array in ascending order or at the end of the returned 
array in descending
    +    order.
     
         :param col: name of column or expression
     
    +    >>> from pyspark.sql.functions import sort_array
    --- End diff --
    
    Do we need this?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to