cloud-fan commented on a change in pull request #34096:
URL: https://github.com/apache/spark/pull/34096#discussion_r718273251
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -239,6 +239,21 @@ class SparkSqlAstBuilder extends AstBuilder {
ShowCurrentNamespaceCommand()
}
+ /**
+ * Create a [[SetCatalogCommand]] logical command.
+ */
+ override def visitSetCatalog(ctx: SetCatalogContext): LogicalPlan =
withOrigin(ctx) {
+ val name =
+ if (ctx.catalogIdentifier().identifier() != null) {
+ ctx.catalogIdentifier().identifier().getText
+ } else if (ctx.catalogIdentifier.STRING() != null) {
+ string(ctx.catalogIdentifier().STRING())
+ } else {
+ ctx.catalogIdentifier().getText
Review comment:
It's not a user-facing error, so we shouldn't use `QueryParsingErrors`
--
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]