MaxGekk commented on code in PR #38647:
URL: https://github.com/apache/spark/pull/38647#discussion_r1023238958


##########
connector/avro/src/test/scala/org/apache/spark/sql/avro/AvroLogicalTypeSuite.scala:
##########
@@ -436,7 +436,7 @@ abstract class AvroLogicalTypeSuite extends QueryTest with 
SharedSparkSession {
       val msg = intercept[SparkException] {
         spark.read.format("avro").load(s"$dir.avro").collect()
       }.getCause.getCause.getMessage
-      assert(msg.contains("Unscaled value too large for precision"))
+      assert(msg.contains("[NUMERIC_VALUE_OUT_OF_RANGE]"))

Review Comment:
   Could you use `checkError()`, please.



-- 
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-unsubscr...@spark.apache.org

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


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

Reply via email to