cloud-fan commented on code in PR #37209:
URL: https://github.com/apache/spark/pull/37209#discussion_r926410019
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/MathUtils.scala:
##########
@@ -26,33 +27,39 @@ object MathUtils {
def addExact(a: Int, b: Int): Int = withOverflow(Math.addExact(a, b))
- def addExact(a: Int, b: Int, errorContext: String): Int =
- withOverflow(Math.addExact(a, b), hint = "try_add", errorContext =
errorContext)
+ def addExact(a: Int, b: Int, errorContext: Option[QueryContext]): Int = {
Review Comment:
can we use a consistent naming `context`?
--
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]