Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15717#discussion_r92329570
  
    --- 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`], ...]
    --- End diff --
    
    What is the reason do we allow users to modify multiple columns in the same 
DDL? This is different from what Hive supports. Should we do it? cc @cloud-fan 
    
    In addition, based on the existing syntax, if we really want to support 
multiple columns, we should change the keywords to `CHANGE COLUMNS`.


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

Reply via email to