srowen commented on a change in pull request #34501:
URL: https://github.com/apache/spark/pull/34501#discussion_r744144619



##########
File path: sql/core/src/test/scala/org/apache/spark/sql/JoinHintSuite.scala
##########
@@ -612,8 +612,8 @@ class JoinHintSuite extends PlanTest with 
SharedSparkSession with AdaptiveSparkP
 
         val logs = hintAppender.loggingEvents.map(_.getRenderedMessage)
           .filter(_.contains("is not supported in the query:"))
-        assert(logs.size == 2)
-        logs.forall(_.contains(s"build left for 
${joinType.split("_").mkString(" ")} join."))
+        assert(logs.size == 2 &&
+          logs.forall(_.contains(s"build left for 
${joinType.split("_").mkString(" ")} join.")))

Review comment:
       Actually maybe even
   ```
   logs.forall(log => assert(log.contains...))
   ```
   Also: `assert(logs.size === 2)`




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