Github user hvanhovell commented on a diff in the pull request: https://github.com/apache/spark/pull/20046#discussion_r171190560 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DataFrameWindowFunctionsSuite.scala --- @@ -33,6 +35,11 @@ import org.apache.spark.unsafe.types.CalendarInterval class DataFrameWindowFunctionsSuite extends QueryTest with SharedSQLContext { import testImplicits._ + private def sortWrappedArrayInRow(d: DataFrame) = d.map { --- End diff -- You can also just use the `array_sort` function. That is probably a lot cheaper.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org