leesf commented on a change in pull request #4270:
URL: https://github.com/apache/hudi/pull/4270#discussion_r767163296



##########
File path: 
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/AlterHoodieTableAddColumnsCommand.scala
##########
@@ -59,7 +64,7 @@ case class AlterHoodieTableAddColumnsCommand(
           s" table columns is: 
[${hoodieCatalogTable.tableSchemaWithoutMetaFields.fieldNames.mkString(",")}]")
       }
       // Get the new schema
-      val newSqlSchema = StructType(tableSchema.fields ++ colsToAdd)
+      val newSqlSchema = StructType(hoodieCatalogTable.dataSchema.fields ++ 
colsToAdd ++ hoodieCatalogTable.partitionSchema.fields)

Review comment:
       would you please clarify why need this change? must put partition schema 
in the end?




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


Reply via email to