danny0405 commented on code in PR #11869:
URL: https://github.com/apache/hudi/pull/11869#discussion_r1743085519
##########
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:
Thanks for the explanation, what should the second `create table` cmd
behavior, should we skip the creation or throws error or change the table
schema as the new one.
--
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]