danny0405 commented on code in PR #11869:
URL: https://github.com/apache/hudi/pull/11869#discussion_r1769380741


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/CreateHoodieTableCommand.scala:
##########
@@ -88,6 +92,20 @@ case class CreateHoodieTableCommand(table: CatalogTable, 
ignoreIfExists: Boolean
 
 object CreateHoodieTableCommand {
 
+  def validateTableSchema(userDefinedSchema: StructType, hoodieTableSchema: 
StructType): Boolean = {
+    if (userDefinedSchema.fields.length != 0 &&

Review Comment:
   Reasonable. Can we log more infomation about the schema discrepancies so 
that user can find out which columns are evolved?



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