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

   Follows #19019 in implementing `_last_updated_timestamp` from the v4 spec 
(#18526). 
   - On read, added and modified entries in v4 manifests inherit the manifest's 
snapshot timestamp. 
   - On write, the root manifest writer stamps the commit's timestamp, which 
commits now pick before writing manifests.
   - Existing, deleted and replaced entries must carry their own timestamp. 
   - In the first commit after a v1-v3 to v4 upgrade, pre-v4 manifests have no 
timestamp, so they take the parent snapshot's.
   - The scan-planning projection now includes the timestamp
   
   Test plan:
   - Writes: the root writer stamps the commit timestamp on ADDED and MODIFIED 
entries and keeps the timestamp of EXISTING entries. Root and leaf writers 
reject a null timestamp for EXISTING, DELETED and REPLACED entries, since they 
can't inherit one.
   - Reads: ADDED and MODIFIED entries inherit the manifest's snapshot 
timestamp, and other statuses keep their own. A committed manifest without a 
timestamp fails.
   - Upgrade: pre-v4 data and delete manifests take the parent snapshot's 
timestamp when wrapped for the root.
   - End to end: concurrent append retries, and appends after a v1/v2/v3 to v4 
upgrade, stamp the new commit's timestamp and keep carried-over timestamps.
   
   ---
   **AI Disclosure**:  iterated with AI


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