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

    https://github.com/apache/spark/pull/21733#discussion_r206786014
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingAggregationSuite.scala
 ---
    @@ -53,7 +53,35 @@ class StreamingAggregationSuite extends 
StateStoreMetricsTest
     
       import testImplicits._
     
    -  test("simple count, update mode") {
    +  def executeFuncWithStateVersionSQLConf(
    +      stateVersion: Int,
    +      confPairs: Seq[(String, String)],
    +      func: => Any): Unit = {
    +    withSQLConf(confPairs ++
    +      Seq(SQLConf.STREAMING_AGGREGATION_STATE_FORMAT_VERSION.key -> 
stateVersion.toString): _*) {
    +      func
    +    }
    +  }
    +
    +  def testWithAllStateVersions(name: String, confPairs: (String, String)*)
    --- End diff --
    
    Actually it's basically from wondering of how `withSQLConf` works. Does 
`withSQLConf` handle nested `withSQLConf` properly? If then we don't need to 
add `confPairs` param at all, and if not I guess we might still want to add 
this.


---

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

Reply via email to