imback82 commented on a change in pull request #26853:
[SPARK-30104][SQL][FOLLOWUP] Replace CatalogObjectIdentifier with
CatalogAndIdentifier
URL: https://github.com/apache/spark/pull/26853#discussion_r356757306
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/connector/catalog/LookupCatalogSuite.scala
##########
@@ -46,13 +49,16 @@ class LookupCatalogSuite extends SparkFunSuite with
LookupCatalog with Inside {
catalogs.getOrElse(name, throw new CatalogNotFoundException(s"$name not
found"))
})
when(manager.currentCatalog).thenReturn(sessionCatalog)
+ when(manager.v2SessionCatalog).thenReturn(sessionCatalog)
manager
}
- test("catalog object identifier") {
+ test("catalog and identifier") {
Seq(
("tbl", sessionCatalog, Seq.empty, "tbl"),
("db.tbl", sessionCatalog, Seq("db"), "tbl"),
+ (s"$globalTempDB.tbl", sessionCatalog, Seq(globalTempDB), "tbl"),
+ (s"$globalTempDB.ns1.ns2.tbl", catalogs(globalTempDB), Seq("ns1",
"ns2"), "tbl"),
Review comment:
@cloud-fan just to confirm, `global_temp` can be resolved to a v2 catalog
named `global_temp`, right?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]