Description
The test fails:
test("SPARK-XXXXX: cache table in spark_catalog") { withNamespace("spark_catalog.ns") { sql("CREATE NAMESPACE spark_catalog.ns") val t = "spark_catalog.ns.tbl" withTable(t) { sql(s"CREATE TABLE $t (col int)") assert(!spark.catalog.isCached(t)) sql(s"CACHE TABLE $t") assert(spark.catalog.isCached(t)) } } }
with the exception:
[info] - SPARK-XXXXX: cache table in spark_catalog *** FAILED *** (278 milliseconds) [info] org.apache.spark.sql.AnalysisException: spark_catalog.ns.tbl is not a valid TableIdentifier as it has more than 2 name parts. [info] at org.apache.spark.sql.connector.catalog.CatalogV2Implicits$MultipartIdentifierHelper.asTableIdentifier(CatalogV2Implicits.scala:130) [info] at org.apache.spark.sql.hive.test.TestHiveQueryExecution.$anonfun$analyzed$1(TestHive.scala:600)