anishshri-db commented on code in PR #47778: URL: https://github.com/apache/spark/pull/47778#discussion_r1719370927
########## sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreSuite.scala: ########## @@ -1090,6 +1089,37 @@ class RocksDBStateStoreSuite extends StateStoreSuiteBase[RocksDBStateStoreProvid } } + + test("verify that column family id is assigned correctly after removal") { + tryWithProviderResource(newStoreProvider(useColumnFamilies = true)) { provider => + var store = provider.getStore(0) + val colFamily1: String = "abc" + val colFamily2: String = "def" + val colFamily3: String = "ghi" + val colFamily4: String = "jkl" + val colFamily5: String = "mno" + store.createColFamilyIfAbsent(colFamily1, keySchema, valueSchema, + NoPrefixKeyStateEncoderSpec(keySchema)) + store.createColFamilyIfAbsent(colFamily2, keySchema, valueSchema, + NoPrefixKeyStateEncoderSpec(keySchema)) + store.commit() + + store = provider.getStore(1) + store.removeColFamilyIfExists(colFamily2) + store.commit() + + store = provider.getStore(2) Review Comment: can we also check by rolling back to an older version ? -- 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