MaxGekk commented on a change in pull request #27404: [SPARK-29020][FOLLOWUP][SQL] Update description of array_sort function URL: https://github.com/apache/spark/pull/27404#discussion_r373056511
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/higherOrderFunctions.scala ########## @@ -291,11 +291,11 @@ case class ArrayTransform( */ // scalastyle:off line.size.limit @ExpressionDescription( - usage = """_FUNC_(expr, func) - 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. Since 3.0.0 this function also sorts and returns the array based on the given - comparator function. The comparator will take two arguments - representing two elements of the array. + usage = """_FUNC_(expr, func) - Sorts the input array. If func is omitted, sort + in ascending order. The elements of the input array must be orderable. Null elements + will be placed at the end of the returned. Since 3.0.0 this function also sorts and Review comment: Did you skip `array` in _Null elements will be placed at the end of the returned **array**._ intentionally? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
