Github user brkyvz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20941#discussion_r178218438
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala ---
    @@ -450,8 +450,8 @@ trait StreamTest extends QueryTest with 
SharedSQLContext with TimeLimits with Be
             // This can often catch hard to debug errors when developing 
stateful operators
             val executedPlan = currentStream.lastExecution.executedPlan
             executedPlan.collect { case s: StatefulOperator => s }.foreach { s 
=>
    -          assert(s.stateInfo.isDefined)
    -          assert(s.stateInfo.get.numPartitions >= 1)
    +          assert(
    +            
s.stateInfo.map(_.numPartitions).contains(currentStream.lastExecution.numStateStores))
    --- End diff --
    
    why this change?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to