dongjoon-hyun commented on a change in pull request #30162:
URL: https://github.com/apache/spark/pull/30162#discussion_r513828434
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreSuite.scala
##########
@@ -814,11 +818,53 @@ class StateStoreSuite extends
StateStoreSuiteBase[HDFSBackedStateStoreProvider]
}
}
+class StateStoreCompatibleSuite extends StreamTest with StateStoreCodecsTest {
+ testWithAllCodec("SPARK-33263: Recovery from checkpoint before codec config
introduced") {
+ val resourceUri = this.getClass.getResource(
+
"/structured-streaming/checkpoint-version-3.0.0-streaming-statestore-codec/").toURI
+ val checkpointDir = Utils.createTempDir().getCanonicalFile
+ FileUtils.copyDirectory(new File(resourceUri), checkpointDir)
+
+ import testImplicits._
+
+ val inputData = MemoryStream[Int]
+ val aggregated = inputData.toDF().groupBy("value").agg(count("*"))
+ inputData.addData(1, 2, 3)
+
+ /*
+ Note: The checkpoint was generated using the following input in Spark
version 3.0.0:
+ AddData(inputData, 1, 2, 3)
+ */
Review comment:
nit. Shall we adjust a little?
- https://github.com/databricks/scala-style-guide#documentation-style
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]