ericm-db commented on code in PR #53365:
URL: https://github.com/apache/spark/pull/53365#discussion_r2607810126


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/runtime/MicroBatchExecution.scala:
##########
@@ -417,11 +418,32 @@ class MicroBatchExecution(
       sourceIdMap
     )
 
-    val execCtx = new MicroBatchExecutionContext(id, runId, name, 
triggerClock, sources, sink,
-      progressReporter, -1, sparkSession, None)
+    // Read the offset log format version from the last written offset log 
entry. If no entries
+    // are found, use the set/default value from the config.
+    val offsetLogFormatVersion = if (latestStartedBatch.isDefined) {
+      
latestStartedBatch.get._2.metadataOpt.map(_.version).getOrElse(OffsetSeqLog.VERSION_1)

Review Comment:
   Actually we don't need this. each offset log should be versioned anyways.



-- 
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]

Reply via email to