jiwen624 commented on code in PR #19242:
URL: https://github.com/apache/iceberg/pull/19242#discussion_r4809044594


##########
core/src/main/java/org/apache/iceberg/RewriteTablePathUtil.java:
##########
@@ -462,9 +615,21 @@ public static RewriteResult<DeleteFile> 
rewriteDeleteManifest(
     return result;
   }
 
+  private static Predicate<ManifestEntry<?>> committedAfter(
+      long startSequenceNumber, Set<Long> startSnapshotIds) {
+    return entry -> {
+      Long fileSequenceNumber = entry.fileSequenceNumber();
+      if (startSequenceNumber > 0 && fileSequenceNumber != null) {
+        return fileSequenceNumber > startSequenceNumber;

Review Comment:
   I see #8469 allows this on purpose: a replace snapshot without parent can 
reuse the sequence number, which seems to conflict with the spec. I tried the 
steps of `CatalogTests.testConcurrentReplaceTransactions` on RESTCatalog and 
the second replace got sequence number 2, same as the first. With the first as 
start version, `rewriteDataManifest` on the PR base copies the second replace's 
file, but on this PR it doesn't.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to