anishshri-db commented on code in PR #50742: URL: https://github.com/apache/spark/pull/50742#discussion_r2070681239
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStoreRDD.scala: ########## @@ -27,6 +27,43 @@ 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 { + /** Case class to hold both the store and its usage state */ + case class StoreInfo(store: ReadStateStore, usedForWriteStore: Boolean = false) Review Comment: nit: maybe move members to a new line each ? -- 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