Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/15717#discussion_r91862111
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala ---
@@ -877,6 +877,35 @@ class SparkSqlAstBuilder(conf: SQLConf) extends
AstBuilder {
}
/**
+ * Create a [[AlterTableChangeColumnsCommand]] command.
+ *
+ * For example:
+ * {{{
+ * ALTER TABLE table [PARTITION partition_spec]
+ * CHANGE [COLUMN] `col` `col` dataType [COMMENT "comment"] [FIRST |
AFTER `otherCol`]
+ * [, `col2` `col2` dataType [COMMENT "comment"] [FIRST | AFTER
`otherCol`], ...]
+ * }}}
+ */
+ override def visitChangeColumns(ctx: ChangeColumnsContext): LogicalPlan
= withOrigin(ctx) {
+ if (ctx.partitionSpec != null) {
+ operationNotAllowed(s"ALTER TABLE PARTITION partition_spec CHANGE
COLUMN, can not change " +
--- End diff --
Nit: remove the string interpolation
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]