Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an action to cherry-pick changes in a snapshot and apply them on another snapshot #42

Closed
rdblue opened this issue Dec 8, 2018 · 1 comment

Comments

@rdblue
Copy link
Contributor

rdblue commented Dec 8, 2018

In an audit workflow, new data is written to an orphan snapshot that is not committed as the table's current state until it is audited. After auditing a change, it may need to be applied or cherry-picked on top of the latest snapshot instead of the one that was current when the audited changes were created.

Iceberg needs to support cherry-picking the changes from an orphan snapshot by applying them to the current snapshot.

Cherry-picking should always apply the exact set of changes that were done in the original commit. If files were deleted, then those files must still exist in the data set. All added files should be added to the new version. Also, if an overwrite by expression replaced 0 files, then there must be no files matching the expression.

@rdblue
Copy link
Contributor Author

rdblue commented Feb 5, 2020

Implemented for appends in #695.

@rdblue rdblue closed this as completed Feb 5, 2020
stevenzwu pushed a commit to stevenzwu/iceberg that referenced this issue Apr 27, 2022
…inator context and operator factory implementation) (apache#42)
puchengy added a commit to puchengy/iceberg that referenced this issue May 18, 2023
… (apache#42)

Backports PR apache#6818 to Spark 3.2.

(cherry picked from commit 8c4fd98)

Co-authored-by: Abid Mohammed <69539469+abmo-x@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant