cloud-fan commented on a change in pull request #34427:
URL: https://github.com/apache/spark/pull/34427#discussion_r739059574



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala
##########
@@ -326,9 +328,9 @@ case class Add(
       IntervalUtils.add(
         input1.asInstanceOf[CalendarInterval], 
input2.asInstanceOf[CalendarInterval])
     case _: DayTimeIntervalType =>
-      Math.addExact(input1.asInstanceOf[Long], input2.asInstanceOf[Long])
+      MathUtils.addExact(input1.asInstanceOf[Long], input2.asInstanceOf[Long])

Review comment:
       is it better to not show the workaround in the error message for ANSI 
interval? e.g. we can still use `Math.addExact` here




-- 
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]

Reply via email to