rdblue commented on pull request #1508: URL: https://github.com/apache/iceberg/pull/1508#issuecomment-701692185
There are a few cases where a snapshot might not have been the current state: 1. For the write-audit-publish (WAP) pattern, there is an option to only stage a commit and not update the table's current-snapshot-id. In this case, the writer updates the table by creating a new snapshot. Then an auditor reads the snapshot and validates it (with row counts, for example), and if the snapshot looks good, commits the snapshot as the current table state. This allows reports to be validated before going live. 2. Single-table transactions will create individual snapshots, but the table state goes directly to the latest snapshot when the transaction commits. Also, the table state can be rolled back to a previous snapshot and new commits will form a new history afterwards. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
