ulysses-you commented on code in PR #36856: URL: https://github.com/apache/spark/pull/36856#discussion_r896371376
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala: ########## @@ -53,6 +53,17 @@ case class UnaryMinus( override def toString: String = s"-$child" private lazy val numeric = TypeUtils.getNumeric(dataType, failOnError) + private lazy val unaryMinusFunc: Any => Any = dataType match { Review Comment: @srowen @LuciferYang This issue mostly happens in arithmetic like expression, and I also tried to collect other related expressions. Hope I'm not missing someone. We can still keep in mind for catching and reviewing the added expression or the new supported data type which may introduce this issue. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org