WweiL commented on code in PR #49091:
URL: https://github.com/apache/spark/pull/49091#discussion_r1884561727
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStoreChangelog.scala:
##########
@@ -351,24 +351,31 @@ class StateStoreChangelogReaderFactory(
case f: FileNotFoundException =>
throw
QueryExecutionErrors.failedToReadStreamingStateFileError(fileToRead, f)
}
- protected val input: DataInputStream = decompressStream(sourceStream)
+ protected var input: DataInputStream = decompressStream(sourceStream)
+ protected var version: Short = -1
private def readVersion(): Short = {
Review Comment:
Thanks for the follow up!
Can we just remove this `protected var version: Short = -1` and change this
line to
`private lazy val readVersion: Short = {`
--
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]