MaxGekk commented on code in PR #37520:
URL: https://github.com/apache/spark/pull/37520#discussion_r949811915
##########
core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala:
##########
@@ -222,4 +222,70 @@ class SparkThrowableSuite extends SparkFunSuite {
assert(false)
}
}
+
+ test("get message in the specified format") {
+ import ErrorMessageFormat._
+ class TestQueryContext extends QueryContext {
+ override val objectName = "v1"
+ override val objectType = "VIEW"
+ override val startIndex = 2
+ override val stopIndex = -1
+ override val fragment = "1 / 0"
+ }
+ val e = new SparkArithmeticException(
Review Comment:
I will add a test w/ a sub-class but w/o query context. Thanks.
--
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]