hk-lrzy commented on a change in pull request #2553:
URL: https://github.com/apache/hudi/pull/2553#discussion_r580906246



##########
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);
+    final HoodieRecord<T> record = records.get(0);

Review comment:
       why use first record' bucket type?  if first record is `I` and the 
second one is `U`, th code will use `FlinkCreateHandle` to process all records




----------------------------------------------------------------
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]


Reply via email to