ericm-db commented on code in PR #50742: URL: https://github.com/apache/spark/pull/50742#discussion_r2070674011
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStoreRDD.scala: ########## @@ -27,6 +27,28 @@ import org.apache.spark.sql.internal.SessionState import org.apache.spark.sql.types.StructType import org.apache.spark.util.SerializableConfiguration +/** + * Thread local storage for sharing StateStore instances between RDDs. + * This allows a ReadStateStore to be reused by a subsequent StateStore operation. + */ +object StateStoreThreadLocalTracker { + private val readStore: ThreadLocal[ReadStateStore] = new ThreadLocal[ReadStateStore] Review Comment: Sure yeah -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org