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/02/07 16:41:10 UTC

[GitHub] [spark] MaxGekk commented on a change in pull request #35416: [SPARK-38126][SQL][TESTS] Check the whole message of error classes

MaxGekk commented on a change in pull request #35416:
URL: https://github.com/apache/spark/pull/35416#discussion_r800847030



##########
File path: sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala
##########
@@ -72,9 +72,8 @@ class QueryCompilationErrorsSuite extends QueryTest with SharedSparkSession {
 
       Dataset.ofRows(spark, plan)
     }.message
-    assert(msg.contains("The feature is not supported: " +
+    assert(msg.matches("The feature is not supported: " +

Review comment:
       The exception was introduced by https://github.com/apache/spark/pull/28572. @Ngone51 Can it be triggered by user code?
   
   Probably, it would be nice to revise all existing error classes/exception, and check their visibility to users.




-- 
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