yihua commented on code in PR #12422:
URL: https://github.com/apache/hudi/pull/12422#discussion_r1870377249
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/MergeIntoHoodieTableCommand.scala:
##########
@@ -432,6 +432,26 @@ case class MergeIntoHoodieTableCommand(mergeInto:
MergeIntoTable) extends Hoodie
false
}
+ // validate that we can support partial updates
+ if (writePartialUpdates) {
+ if (hoodieCatalogTable.tableConfig.getBootstrapBasePath.isPresent) {
+ throw new UnsupportedOperationException("Partial updates are not
supported for bootstrap tables.")
+ }
+
+ if (!hoodieCatalogTable.tableConfig.populateMetaFields()) {
+ throw new UnsupportedOperationException("Partial updates are not
supported for virtual key tables.")
+ }
+
+ if
(HoodieAvroUtils.containsUnsupportedTypesForFileGroupReader(fullSchema)) {
+ throw new UnsupportedOperationException("Partial updates are not
supported for tables with enum columns")
+ }
+
+ if
(parameters.getOrElse(DataSourceReadOptions.SCHEMA_EVOLUTION_ENABLED.key(),
Review Comment:
We can add a new util method. Not a blocking issue.
--
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]