imback82 commented on a change in pull request #30825:
URL: https://github.com/apache/spark/pull/30825#discussion_r546162389
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
##########
@@ -863,6 +864,23 @@ class DataSourceV2SQLSuite
}
}
+ test("SPARK-33829: Renaming a table should recreate a cache while retaining
the old cache info") {
+ withTable("testcat.ns.old", "testcat.ns.new") {
+ def getStorageLevel(tableName: String): StorageLevel = {
+ val table = spark.table(tableName)
+ val cachedData =
spark.sharedState.cacheManager.lookupCachedData(table).get
Review comment:
`get` would fail, but I added an assert for clarity.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]