WweiL commented on code in PR #47932:
URL: https://github.com/apache/spark/pull/47932#discussion_r1801670073
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/resources/testCommitLogV1/testCommitLog:
##########
@@ -0,0 +1,2 @@
+v1
+{"nextBatchWatermarkMs":1,"stateUniqueIds":{}}
Review Comment:
This is the golden file generation mechanism, a pretty common pattern used
in Spark:
https://github.com/apache/spark/blob/master/core/src/test/scala/org/apache/spark/SparkFunSuite.scala#L91
See example usage here:
https://github.com/apache/spark/blob/master/core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala#L95
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]