imback82 commented on a change in pull request #26379: [SPARK-29734][SQL] 
Datasource V2: Support SHOW CURRENT NAMESPACE
URL: https://github.com/apache/spark/pull/26379#discussion_r342175495
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
 ##########
 @@ -362,3 +362,12 @@ case class SetCatalogAndNamespace(
 case class RefreshTable(
     catalog: TableCatalog,
     ident: Identifier) extends Command
+
+/**
+ * The logical plan of the SHOW CURRENT NAMESPACE command that works for v2 
catalogs.
+ */
+case class ShowCurrentNamespace(catalogManager: CatalogManager) extends 
Command {
+  override val output: Seq[Attribute] = Seq(
+    AttributeReference("catalogName", StringType, nullable = false)(),
 
 Review comment:
   updated to `catalog/namespace`

----------------------------------------------------------------
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]

Reply via email to