Repository navigation
feat(transaction): let a snapshot operation report removed files and rewrite manifests #3253
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
Merged
laskoviymishka
merged 14 commits into
apache:main
from
jopdorp:snapshot-producer-removals
Oct 15, 2026
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fed895f
Let a snapshot operation report the files it removed
jopdorp 3fc4e80
Keep manifest names unique across a commit
jopdorp 6325d22
Write a manifest under the schema and spec it was written with
jopdorp 1cad731
test(transaction): cover partial overwrite and per-file spec in snaps…
jopdorp d5623e3
Drop the full-table truncation from the snapshot summary
jopdorp 296532e
Omit a summary total that would go negative, as Java does
jopdorp eeff802
Name the removed-file fields and take the manifest spec by ref
jopdorp 495f3ad
Take the added files again instead of cloning them for the summary
jopdorp 96da179
Assert an operation reports exactly the files it marked deleted
jopdorp a5653bc
Say in the removed_data_files doc what it must match
jopdorp b194d10
Merge remote-tracking branch 'origin/main' into review-3253
jopdorp 2977261
Summarize deleted files from the producer's list, as pyiceberg does
jopdorp 683fae4
Check that deletion summaries match manifest entries
jopdorp 5f36938
Format dropped-source integer partition values
jopdorp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional follow-up: this covers
Int/Longliterals only.partition_typegivesUnknownfor identity/truncate over a dropped column, so a droppeddecimaloruuidsource should end up as(Unknown, Int128)/(Unknown, UInt128), miss theDecimal/Uuidarms below and land on theunreachable!()— same commit-path panic, two more types. I haven't run it, this is from reading the arms.Two arms before the catch-all plus decimal/uuid cases in
test_partition_to_path_with_dropped_source_columnwould close it:Since this is #3432's change, that PR or a small follow-up is a fine home for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran this one:
identity(decimal),truncate(decimal)andidentity(uuid)on a dropped source all hit thatunreachable!(). #3432 adds those two arms in b765bbf (uuid prints like Java, decimal prints the unscaled value since the scale is gone with the source).