diff --git a/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/HoodieFlinkWriteClient.java b/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/HoodieFlinkWriteClient.java index 566ac79f3441..53a579950847 100644 --- a/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/HoodieFlinkWriteClient.java +++ b/hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/HoodieFlinkWriteClient.java @@ -181,7 +181,7 @@ public List upsertPreppedRecords(List> preppedRecor public List insert(List> records, String instantTime) { HoodieTable>, List, List> table = initTable(WriteOperationType.INSERT, Option.ofNullable(instantTime)); - table.validateUpsertSchema(); + table.validateInsertSchema(); preWrite(instantTime, WriteOperationType.INSERT, table.getMetaClient()); // create the write handle if not exists final HoodieWriteHandle writeHandle = getOrCreateWriteHandle(records.get(0), getConfig(),