yuzhaojing commented on a change in pull request #3390:
URL: https://github.com/apache/hudi/pull/3390#discussion_r682351127



##########
File path: 
hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java
##########
@@ -128,6 +129,11 @@ private void validateRequiredFields(Configuration conf, 
TableSchema schema) {
       throw new ValidationException("Field " + preCombineField + " does not 
exist in the table schema."
           + "Please check 'write.precombine.field' option.");
     }
+
+    if 
(conf.getString(FlinkOptions.TABLE_TYPE).toUpperCase().equals(FlinkOptions.TABLE_TYPE_MERGE_ON_READ)
+        && conf.getBoolean(FlinkOptions.INSERT_ALLOW_DUP)) {
+      throw new ValidationException("Option 'write.insert.allow_dup' is only 
allowed for COPY_ON_WRITE table.");

Review comment:
       This may be lead users to misunderstand, I think we shouldn't modify the 
parameters.




-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to