Skip to content

Commit

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

Co-authored-by: 徐帅 <xushuai@MacBook-Pro-6.local>
  • Loading branch information
2 people authored and voonhous committed Oct 7, 2022
1 parent 7117cae commit d98d422
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 d98d422

Please sign in to comment.