rdblue commented on code in PR #18816:
URL: https://github.com/apache/iceberg/pull/18816#discussion_r4621287538


##########
core/src/main/java/org/apache/iceberg/V4ManifestReader.java:
##########
@@ -315,12 +377,34 @@ private TrackedFile copyResolved(TrackedFile trackedFile) 
{
     return copy;
   }
 
+  private TrackedFile reclassify(TrackedFile file) {
+    TrackingStruct tracking = (TrackingStruct) file.tracking();
+    if (!tracking.isLive()) {
+      return file;
+    }
+
+    int pos = Math.toIntExact(tracking.manifestPos());
+    if (isMarkedDeleted(pos)) {
+      tracking.markDeleted(changeSnapshotId);
+    } else if (isMarkedReplaced(pos)) {
+      tracking.markReplaced(changeSnapshotId);
+    }
+
+    return file;
+  }
+
   private static boolean isManifest(TrackedFile trackedFile) {
     FileContent content = trackedFile.contentType();
     return content == FileContent.DATA_MANIFEST || content == 
FileContent.DELETE_MANIFEST;
   }
 
   static class Builder {
+    private enum Mode {
+      DEFAULT,
+      SCAN_PLANNING,
+      CHANGES

Review Comment:
   Change log is producing changes across snapshots, while this is producing 
changes from a single file. I'd prefer CHANGES.



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