anishshri-db commented on code in PR #50742: URL: https://github.com/apache/spark/pull/50742#discussion_r2067603590
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala: ########## @@ -950,6 +972,30 @@ object StateStore extends Logging { storeProvider.getReadStore(version, stateStoreCkptId) } + def getWriteStore( + readStore: ReadStateStore, + storeProviderId: StateStoreProviderId, + keySchema: StructType, + valueSchema: StructType, + keyStateEncoderSpec: KeyStateEncoderSpec, + version: Long, + stateStoreCkptId: Option[String], + stateSchemaBroadcast: Option[StateSchemaBroadcast], + useColumnFamilies: Boolean, + storeConf: StateStoreConf, + hadoopConf: Configuration, + useMultipleValuesPerKey: Boolean = false): StateStore = { + hadoopConf.set(StreamExecution.RUN_ID_KEY, storeProviderId.queryRunId.toString) + if (version < 0) { + throw QueryExecutionErrors.unexpectedStateStoreVersion(version) + } + hadoopConf.set(StreamExecution.RUN_ID_KEY, storeProviderId.queryRunId.toString) Review Comment: Yea prob dont need to set multiple times -- 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