You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/02/23 10:04:35 UTC

[GitHub] [hudi] hk-lrzy commented on a change in pull request #2553: [HUDI-1598] Write as minor batches during one checkpoint interval for…

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:
users@infra.apache.org