rdblue commented on code in PR #18526: URL: https://github.com/apache/iceberg/pull/18526#discussion_r4672529676
########## format/spec.md: ########## @@ -1237,6 +1245,17 @@ Inheriting sequence numbers through the metadata tree allows writing a new manif Inheritance does not apply to v1, which does not have inherited fields like sequence number. When reading v1 manifests with no sequence number column, sequence numbers for all files must default to 0. +##### Snapshot Timestamp Inheritance + +The `snapshot_timestamp` tracking field records the `timestamp-ms` of the snapshot that added or last modified a file's data, converted to microseconds. It is used to assign `_last_updated_timestamp` for [row lineage](#row-lineage). + +When writing a manifest, writers must set `snapshot_timestamp` as follows: + +* An ADDED entry or an entry MODIFIED by column files must have a `null` `snapshot_timestamp`. Review Comment: I think constructions that use "MODIFIED" in the sentence rather than as a state are confusing. ```suggestion * ADDED entries must set the value to `null` (inherit) * MODIFIED entries must set the value to `null` when data in live rows is updated (e.g. adding a column file) * MODIFIED entries must preserve the original value if data in live rows is not changed (e.g. updating the file's DV) ``` -- 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]
