dramaticlly opened a new pull request, #19242:
URL: https://github.com/apache/iceberg/pull/19242

   RewriteTablePath copies a live file only if the snapshot that added it 
appears in a metadata file in the log. Other files are referenced but never 
copied. This happens on full copies once the log is truncated, and on 
incremental copies when one commit adds and expires a snapshot. The manifest 
filter has the same gap, leaving a dangling manifest reference. This selects 
manifests and entries above the start version's last sequence number, using 
file sequence numbers because compaction keeps old data sequence numbers. 
Without sequence numbers (v1), it skips only files added by the start version's 
snapshots. All Spark versions migrate, so the snapshot ID overloads are 
deprecated. The revapi entry re-reports an accepted removal.
   
   Fixes #14458. Alternative to #16220.
   
   Test plan:
   - Full copy after the metadata log is truncated copies the expired 
snapshot's live file (existing test, expectation corrected).
   - Incremental copy copies a file and a manifest whose adding snapshot is in 
no metadata file.
   - Incremental copy does not re-copy a manifest whose adding snapshot expired 
before the start version.
   - Incremental copy copies a delete file added after the start version 
(position delete file on v2, DV on v3).
   - Core: entries above the start sequence number are copied for data and 
delete manifests, compaction-style entries are copied by file sequence number, 
and entries without sequence numbers fall back to snapshot IDs.
   - Ran :iceberg-core:check, the Spark 4.2 and extensions checks, 
TestRewriteTablePathsAction on Spark 3.5, and the -DallModules build checks.
   
   ---
   **AI Disclosure**
   - Model: Claude Opus 5.5
   - Platform/Tool: Claude Code
   - Human Oversight: [unknown - human to fill in]
   - Prompt Summary: Analyze why snapshot ID filtering in RewriteTablePath 
loses files, mutation-test PR #16220, and implement the sequence-number 
alternative with tests. The analysis, the core and Spark changes, the tests, 
and this description are generated; the direction and scope decisions are the 
author's.
   


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