liviazhu commented on code in PR #53007:
URL: https://github.com/apache/spark/pull/53007#discussion_r2516090268
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/runtime/IncrementalExecution.scala:
##########
@@ -563,6 +563,18 @@ class IncrementalExecution(
stateStoreWriter.getStateInfo.operatorId ->
stateStoreWriter.shortName
}.toMap
+ // Check if state directory is empty when we have stateful operators
+ if (opMapInPhysicalPlan.nonEmpty) {
Review Comment:
Yes - this fn is only run when `(isFirstBatch && currentBatchId != 0)`, so
only on query restart.
--
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]