Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/21021#discussion_r182993016
--- Diff: python/pyspark/sql/functions.py ---
@@ -2168,6 +2171,23 @@ def sort_array(col, asc=True):
return Column(sc._jvm.functions.sort_array(_to_java_column(col), asc))
+@since(2.4)
+def array_sort(col):
+ """
+ Collection function: sorts the input array in ascending order. The
elements of the input array
+ must be orderable. Null elements will be placed at the end of the
returned array.
+
+ :param col: name of column or expression
+
+ >>> from pyspark.sql.functions import array_sort
--- End diff --
ditto.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]