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

    https://github.com/apache/spark/pull/22386#discussion_r216730172
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStoreRDD.scala
 ---
    @@ -74,9 +74,14 @@ class StateStoreRDD[T: ClassTag, U: ClassTag](
     
         // If we're in continuous processing mode, we should get the store 
version for the current
         // epoch rather than the one at planning time.
    -    val currentVersion = EpochTracker.getCurrentEpoch match {
    -      case None => storeVersion
    -      case Some(value) => value
    +    val isContinuous = 
Option(ctxt.getLocalProperty(ContinuousExecution.IS_CONTINUOUS_PROCESSING))
    --- End diff --
    
    Just simple `toBoolean` here is OK?Cause you set default value both 
MicroBatch and Continuous side.


---

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

Reply via email to