danny0405 commented on code in PR #12422:
URL: https://github.com/apache/hudi/pull/12422#discussion_r1870608944
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/MergeIntoHoodieTableCommand.scala:
##########
@@ -432,6 +433,27 @@ case class MergeIntoHoodieTableCommand(mergeInto:
MergeIntoTable) extends Hoodie
false
}
+ // validate that we can support partial updates
+ if (writePartialUpdates) {
+ if (hoodieCatalogTable.tableConfig.getBootstrapBasePath.isPresent) {
+ throw new HoodieNotSupportedException("Partial updates are not
supported for bootstrap tables. " + partialUpdateFailureString)
+ }
+
+ if (!hoodieCatalogTable.tableConfig.populateMetaFields()) {
+ throw new HoodieNotSupportedException("Partial updates are not
supported for virtual key tables. " + partialUpdateFailureString)
+ }
+
+ val tableSchemaResolver = new
TableSchemaResolver(hoodieCatalogTable.metaClient)
+ if
(HoodieAvroUtils.containsUnsupportedTypesForFileGroupReader(tableSchemaResolver.getTableAvroSchema))
{
+ throw new HoodieNotSupportedException("Partial updates are not
supported for tables with enum columns. " + partialUpdateFailureString)
Review Comment:
Let's remove this check.
--
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]