nsivabalan commented on code in PR #18016:
URL: https://github.com/apache/hudi/pull/18016#discussion_r2898339272
##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieCommitMetadata.java:
##########
@@ -499,4 +500,18 @@ public Pair<Option<Long>, Option<Long>>
getMinAndMaxEventTime() {
public HashSet<String> getWritePartitionPaths() {
return new HashSet<>(partitionToWriteStats.keySet());
}
+
+ public Set<String> getWritePartitionPathsWithUpdatedFileGroups() {
+ return getPartitionToWriteStats()
+ .entrySet()
+ .stream()
+ .filter(partitionAndWriteStats -> partitionAndWriteStats
+ .getValue()
+ .stream()
+ .anyMatch(writeStat ->
!Option.ofNullable(writeStat.getPrevCommit())
Review Comment:
not sure if we can be confident that every code path sets the right value
for `getPrevCommit()`.
can we do something like
`numWrites != numInserts`
--
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]