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

    https://github.com/apache/spark/pull/19773#discussion_r215279507
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala ---
    @@ -318,18 +318,34 @@ case class AlterTableChangeColumnCommand(
     
         // Find the origin column from dataSchema by column name.
         val originColumn = findColumnByName(table.dataSchema, columnName, 
resolver)
    -    // Throw an AnalysisException if the column name/dataType is changed.
    +    // Throw an AnalysisException if the column name is changed.
         if (!columnEqual(originColumn, newColumn, resolver)) {
           throw new AnalysisException(
             "ALTER TABLE CHANGE COLUMN is not supported for changing column " +
               s"'${originColumn.name}' with type '${originColumn.dataType}' to 
" +
               s"'${newColumn.name}' with type '${newColumn.dataType}'")
    --- End diff --
    
    Can you update this error message?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to