kbuci commented on code in PR #18016:
URL: https://github.com/apache/hudi/pull/18016#discussion_r2738603237


##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieCommitMetadata.java:
##########
@@ -490,6 +491,18 @@ public HashSet<String> getWritePartitionPaths() {
     return new HashSet<>(partitionToWriteStats.keySet());
   }
 
+  public Set<String> getWritePartitionPathsWithExistingFileGroupsModified() {
+    return getPartitionToWriteStats()
+        .entrySet()
+        .stream()
+        .filter(partitionAndWriteStats -> partitionAndWriteStats
+            .getValue()
+            .stream()
+            .anyMatch(writeStat -> 
!Option.ofNullable(writeStat.getPrevCommit()).orElse("null").equalsIgnoreCase("null")))

Review Comment:
   Just to clarify, do you mean verifying that `prevCommit` is a legal HUDI 
instant time (assuming its not "null" or `null`)?



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