maropu commented on a change in pull request #28106: [SPARK-31335][SQL] Add try
function support
URL: https://github.com/apache/spark/pull/28106#discussion_r407873456
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscExpressionsSuite.scala
##########
@@ -89,4 +90,29 @@ class MiscExpressionsSuite extends SparkFunSuite with
ExpressionEvalHelper {
assert(outputCodegen.contains(s"Result of $inputExpr is 1"))
assert(outputEval.contains(s"Result of $inputExpr is 1"))
}
+
+ test("try expression") {
+ intercept[RuntimeException] {
Review comment:
nit: could you check the error message, too, just in case?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]