HyukjinKwon commented on a change in pull request #33894:
URL: https://github.com/apache/spark/pull/33894#discussion_r701525917



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
##########
@@ -205,7 +205,8 @@ class SQLConfSuite extends QueryTest with 
SharedSparkSession {
     assert(spark.conf.get("spark.app.id") === appId, "Should not change spark 
core ones")
     // spark core conf w/ entry registered
     val e1 = intercept[AnalysisException](sql("RESET spark.executor.cores"))
-    assert(e1.getMessage === "Cannot modify the value of a Spark config: 
spark.executor.cores")
+    val str_match = "Cannot modify the value of a Spark config: 
spark.executor.cores"
+    assert(e1.getMessage.contains(s"${str_match}"))

Review comment:
       ```suggestion
       assert(e1.getMessage.contains(str_match))
   ```




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

Reply via email to