alexr17 commented on code in PR #17821:
URL: https://github.com/apache/hudi/pull/17821#discussion_r2685074606


##########
hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/commit/DatasetBulkInsertOverwriteCommitActionExecutor.java:
##########
@@ -69,6 +70,11 @@ protected Map<String, List<String>> 
getPartitionToReplacedFileIds(HoodieData<Wri
       table.getContext().setJobStatus(this.getClass().getSimpleName(), 
"Getting ExistingFileIds of matching static partitions");
       return 
HoodieJavaPairRDD.getJavaPairRDD(table.getContext().parallelize(partitionPaths, 
partitionPaths.size()).mapToPair(
           partitionPath -> Pair.of(partitionPath, 
getAllExistingFileIds(partitionPath)))).collectAsMap();
+    } else if (!table.isPartitioned()) {
+      // Do not need to check for partition paths for non-partitioned tables
+      Map<String, List<String>> result = new HashMap<>();

Review Comment:
   yes. I have updated the code. there is .distinct() call being made on a 
HoodieJavaRDD which is triggering the DAG unnecessarily.



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