danny0405 commented on a change in pull request #2553:
URL: https://github.com/apache/hudi/pull/2553#discussion_r572534484
##########
File path:
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/HoodieFlinkWriteClient.java
##########
@@ -111,7 +124,23 @@ public void bootstrap(Option<Map<String, String>>
extraMetadata) {
getTableAndInitCtx(WriteOperationType.UPSERT, instantTime);
table.validateUpsertSchema();
preWrite(instantTime, WriteOperationType.UPSERT);
- HoodieWriteMetadata<List<WriteStatus>> result = table.upsert(context,
instantTime, records);
+ // create the write handle if not exists
+ final HoodieRecord<T> record = records.get(0);
+ final HoodieRecordLocation loc = record.getCurrentLocation();
+ final String fileID = loc.getFileId();
+ final boolean isInsert = loc.getInstantTime().equals("I");
+ final HoodieWriteHandle<?, ?, ?, ?> writeHandle;
Review comment:
Yes, once created for a bucket, never change.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]