Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/21352#discussion_r188940909 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala --- @@ -870,6 +870,7 @@ case class ArrayMin(child: Expression) extends UnaryExpression with ImplicitCast override protected def nullSafeEval(input: Any): Any = { var min: Any = null + val ordering = TypeUtils.getInterpretedOrdering(dataType) --- End diff -- We can't do this, `nullSafeEval` is called for every input record
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org