stevenzwu commented on PR #19266:
URL: https://github.com/apache/iceberg/pull/19266#issuecomment-7369829500

   > A question about the upgrade rule in 
[#18526](https://github.com/apache/iceberg/pull/18526), not the code.
   > 
   > Example:
   > 
   > * S1 (t=100): append file A
   > * S2 (t=200): add a delete file
   > * Upgrade the table to v4
   > * S3 (t=300): append file B
   > 
   > In S3's root, the manifest with file A keeps snapshot ID S1 but gets the 
time of S3's parent, S2 (200). So file A looks updated at 200 instead of 100.
   > 
   > Could we use S1's time when S1 still exists, and fall back to S2's time if 
it doesn't? Both are safe, but S1's time is more accurate. The downside is that 
the result would depend on which snapshots were already expired. If it's worth 
changing, should we change 
[#18526](https://github.com/apache/iceberg/pull/18526)?
   
   We already reached consensus in the spec discussion that the rows added 
before the upgrade should inherit the timestamp of the last snapshot before 
upgrade, which is S2 (t=200) in this case.
   
   Snapshots may have expired. it is not worth to get a half-baked solution 
that is relatively expensive to correlate. Those rows are added before this v4 
feature. We can't accurately backfill their true values.


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