stevomitric commented on code in PR #45639:
URL: https://github.com/apache/spark/pull/45639#discussion_r1533886271
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala:
##########
@@ -888,6 +888,178 @@ case class MapFromEntries(child: Expression)
copy(child = newChild)
}
+@ExpressionDescription(
+ usage = """
+ _FUNC_(map[, ascendingOrder]) - Sorts the input map in ascending or
descending order
+ according to the natural ordering of the map keys. The algorithm used
for sorting is
+ an adaptive, stable and iterative algorithm. If the input map is empty,
function
+ returns an empty map.
+ """,
+ arguments =
+ """
+ Arguments:
+ * map - The map that will be sorted.
+ * ascendingOrder - A boolean value describing the order in which the map
will be sorted.
+ This can be either be ascending (true) or descending (false).
+ """,
+ examples = """
Review Comment:
Removed `ExpressionDescription`.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]