You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/15 01:41:22 UTC

[GitHub] [spark] panbingkun commented on a diff in pull request #36199: [SPARK-38722][SQL][TESTS] Test the error class: CAST_CAUSES_OVERFLOW

panbingkun commented on code in PR #36199:
URL: https://github.com/apache/spark/pull/36199#discussion_r850979018


##########
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala:
##########
@@ -324,4 +324,16 @@ class QueryExecutionErrorsSuite extends QueryTest
     assert(e5.getSqlState === "42000")
     assert(e5.getMessage === "Cannot parse decimal")
   }
+
+  test("CAST_CAUSES_OVERFLOW") {
+    val e = intercept[SparkArithmeticException] {
+      sql("set spark.sql.ansi.enabled=true")

Review Comment:
   ok



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org