ulysses-you commented on code in PR #37021:
URL: https://github.com/apache/spark/pull/37021#discussion_r910729308
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/catalog/CatalogV2Implicits.scala:
##########
@@ -132,15 +133,17 @@ private[sql] object CatalogV2Implicits {
def asTableIdentifier: TableIdentifier = ident.namespace match {
case ns if ns.isEmpty => TableIdentifier(ident.name)
- case Array(dbName) => TableIdentifier(ident.name, Some(dbName))
+ case Array(dbName) =>
+ TableIdentifier(ident.name, Some(dbName), sessionCatalogOption(dbName))
Review Comment:
This affects all v1 command's TableIdentifier and FunctionIdentifier, e.g.
`DescribeTableCommand`.
```scala
case class DescribeTableCommand(
table: TableIdentifier,
partitionSpec: TablePartitionSpec,
isExtended: Boolean,
override val output: Seq[Attribute])
```
With this change, explain string will output the catalog name. see the
change in `describe.sql.out`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]