YuweiXiao commented on a change in pull request #4823: URL: https://github.com/apache/hudi/pull/4823#discussion_r807650172
########## File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/commit/UpsertPartitioner.java ########## @@ -165,7 +165,7 @@ private void assignInserts(WorkloadProfile profile, HoodieEngineContext context) List<SmallFile> smallFiles = filterSmallFilesInClustering(partitionPathToPendingClusteringFileGroupsId.getOrDefault(partitionPath, Collections.emptySet()), - partitionSmallFilesMap.get(partitionPath)); + partitionSmallFilesMap.getOrDefault(partitionPath, new ArrayList<>())); Review comment: Why is this necessary? Looking at the map construction, seems all partitions should have a corresponding value in the map. -- 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