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 2021/01/15 06:22:50 UTC
[GitHub] [spark] LuciferYang commented on a change in pull request #31190: [SPARK-34118][CORE][SQL][3.0] Replaces filter and check for emptiness with exists or forall
LuciferYang commented on a change in pull request #31190:
URL: https://github.com/apache/spark/pull/31190#discussion_r557892183
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingQueryListenerSuite.scala
##########
@@ -48,8 +48,7 @@ class StreamingQueryListenerSuite extends StreamTest with BeforeAndAfter {
spark.streams.active.foreach(_.stop())
assert(spark.streams.active.isEmpty)
// Skip check default `StreamingQueryStatusListener` which is for streaming UI.
- assert(spark.streams.listListeners()
- .filterNot(_.isInstanceOf[StreamingQueryStatusListener]).isEmpty)
+ assert(spark.streams.listListeners().forall(_.isInstanceOf[StreamingQueryStatusListener]))
Review comment:
ok
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org