Ngone51 commented on a change in pull request #28162: [SPARK-31391][SQL][TEST] 
Add AdaptiveTestUtils to ease the test of AQE
URL: https://github.com/apache/spark/pull/28162#discussion_r406634173
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/MetadataCacheSuite.scala
 ##########
 @@ -55,8 +56,8 @@ abstract class MetadataCacheSuite extends QueryTest with 
SharedSparkSession {
       val e = intercept[SparkException] {
         df.count()
       }
-      assert(e.getMessage.contains("FileNotFoundException"))
-      assert(e.getMessage.contains("recreating the Dataset/DataFrame 
involved"))
+      assertExceptionMessage(e, "FileNotFoundException")
 
 Review comment:
   The helper method can also work for normal cases without AQE but adding 
`AQE` just sounds like it's only used by AQE?

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

Reply via email to