gengliangwang commented on a change in pull request #35681:
URL: https://github.com/apache/spark/pull/35681#discussion_r816505759
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DescribeTableExec.scala
##########
@@ -43,7 +47,9 @@ case class DescribeTableExec(
private def addTableDetails(rows: ArrayBuffer[InternalRow]): Unit = {
rows += emptyRow()
rows += toCatalystRow("# Detailed Table Information", "", "")
- rows += toCatalystRow("Name", table.name(), "")
+ rows += toCatalystRow("Catalog", resolvedTable.catalog.name(), "")
+ rows += toCatalystRow("Database",
resolvedTable.identifier.namespace().mkString("."), "")
Review comment:
Yes, namespace() returns a list. It's a feature of DS V2. Usually the
length should be 1.
--
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]