ericm-db commented on code in PR #49277: URL: https://github.com/apache/spark/pull/49277#discussion_r1904754402
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateEncoder.scala: ########## @@ -51,6 +54,188 @@ sealed trait RocksDBValueStateEncoder { def decodeValues(valueBytes: Array[Byte]): Iterator[UnsafeRow] } +trait StateSchemaProvider extends Serializable { + def getSchemaMetadataValue(key: StateSchemaMetadataKey): StateSchemaMetadataValue + + def getCurrentStateSchemaId(colFamilyName: String, isKey: Boolean): Short +} + + +// Test implementation that can be dynamically updated +class TestStateSchemaProvider extends StateSchemaProvider { Review Comment: Will resolve offline -- 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