Skip to content

Commit

Permalink
[MINOR] Insert should call validateInsertSchema in HoodieFlinkWriteCl…
Browse files Browse the repository at this point in the history
…ient (#5919)

Co-authored-by: 徐帅 <xushuai@MacBook-Pro-6.local>
  • Loading branch information
shuai-xu and 徐帅 authored Sep 13, 2022
1 parent 3cfe485 commit a942d9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public List<WriteStatus> upsertPreppedRecords(List<HoodieRecord<T>> preppedRecor
public List<WriteStatus> insert(List<HoodieRecord<T>> records, String instantTime) {
HoodieTable<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> 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(),
Expand Down

0 comments on commit a942d9d

Please sign in to comment.