MaxGekk commented on code in PR #37209:
URL: https://github.com/apache/spark/pull/37209#discussion_r927482920
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala:
##########
@@ -52,6 +53,15 @@ import org.apache.spark.util.collection.BitSet
/** Used by [[TreeNode.getNodeNumbered]] when traversing the tree for a given
number */
private class MutableInt(var i: Int)
+/** The class represents error context of a SQL query. */
+case class SqlQueryContext(
+ override val objectType: String,
+ override val objectName: String,
+ override val startIndex: Int,
+ override val stopIndex: Int,
+ override val fragment: String,
+ override val summary: String) extends QueryContext
Review Comment:
Yep, removed it.
##########
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:
done
--
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]