cloud-fan commented on a change in pull request #34104:
URL: https://github.com/apache/spark/pull/34104#discussion_r716453867
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -3566,11 +3566,11 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef]
with SQLConfHelper with Logg
}
/**
- * Create a [[ShowCurrentNamespaceStatement]].
+ * Create a [[ShowCurrentNamespace]].
*/
override def visitShowCurrentNamespace(
ctx: ShowCurrentNamespaceContext) : LogicalPlan = withOrigin(ctx) {
- ShowCurrentNamespaceStatement()
+ ShowCurrentNamespace(None)
Review comment:
This command does not need any analysis and using `RunnableCommand`
should be good enough
```
case class ShowCurrentNamespaceCommand extends LeafRunnableCommand {
override def run(sparkSession: SparkSession): Seq[Row] = {
val catalogManager = sparkSession.sessionState.catalogManager
...
}
}
```
--
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]