wombatu-kun commented on code in PR #10908:
URL: https://github.com/apache/hudi/pull/10908#discussion_r1535259756


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/table/HoodieFlinkCopyOnWriteTable.java:
##########
@@ -421,20 +419,8 @@ public Iterator<List<WriteStatus>> handleUpdate(
 
   protected Iterator<List<WriteStatus>> 
handleUpdateInternal(HoodieMergeHandle<?, ?, ?, ?> upsertHandle, String 
instantTime,
                                                              String fileId) 
throws IOException {
-    if (upsertHandle.getOldFilePath() == null) {
-      throw new HoodieUpsertException(
-          "Error in finding the old file path at commit " + instantTime + " 
for fileId: " + fileId);
-    } else {
-      HoodieMergeHelper.newInstance().runMerge(this, upsertHandle);
-    }
-
-    // TODO(vc): This needs to be revisited
-    if (upsertHandle.getPartitionPath() == null) {
-      LOG.info("Upsert Handle has partition path as null " + 
upsertHandle.getOldFilePath() + ", "
-          + upsertHandle.writeStatuses());
-    }

Review Comment:
   Yes, the first **if** i moved to `HoodieTable.runMerge()`, the second **if** 
- to `HoodieMergeHandle.getWriteStatusesAsIterator()`



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to