gatorsmile commented on a change in pull request #25294: [SPARK-28476][SQL]
Support ALTER DATABASE SET LOCATION
URL: https://github.com/apache/spark/pull/25294#discussion_r308802354
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -532,6 +532,22 @@ class SparkSqlAstBuilder(conf: SQLConf) extends
AstBuilder(conf) {
visitPropertyKeyValues(ctx.tablePropertyList))
}
+ /**
+ * Create an [[AlterDatabaseLocationCommand]] command.
+ *
+ * For example:
+ * {{{
+ * ALTER (DATABASE|SCHEMA) database SET LOCATION path;
+ * }}}
+ */
+ override def visitSetDatabaseLocation(
+ ctx: SetDatabaseLocationContext): LogicalPlan = withOrigin(ctx) {
+ AlterDatabaseLocationCommand(
Review comment:
remove two more spaces
----------------------------------------------------------------
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]