danny0405 commented on a change in pull request #5018: URL: https://github.com/apache/hudi/pull/5018#discussion_r824461742
########## File path: hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/table/action/commit/FlinkWriteHelper.java ########## @@ -113,5 +114,10 @@ public static FlinkWriteHelper newInstance() { hoodieRecord.setCurrentLocation(rec1.getCurrentLocation()); return hoodieRecord; }).orElse(null)).filter(Objects::nonNull).collect(Collectors.toList()); + + if (hasInsert) { + recordList.get(0).getCurrentLocation().setInstantTime("I"); + } + return recordList; Review comment: In line 114, we already reset the location, so each records list under the same key after reduction should have the same instant time type as before, so why the set is needed ? -- 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. To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org