Use native Iceberg reference expiration - #714
Merged
mkuchenbecker merged 1 commit intoSep 4, 2026
Merged
mkuchenbecker merged 1 commit into
mkuchenbecker merged 1 commit into
Conversation
Stamp the seven-day maximum reference age on new tables and backfill it when snapshot maintenance encounters a legacy table. Delegate branch and tag expiration to native Iceberg reference handling. BDP-106337 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mkuchenbecker
marked this pull request as ready for review
September 4, 2026 17:11
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stack
Summary
Replace the custom branch-reference removal pass from PR 708 with Iceberg's native reference expiration.
Snapshot-expiration maintenance backfills
history.expire.max-ref-age-msto seven days when the property is missing. New tables receive the same default during creation, while an existing configured value is preserved. Iceberg then expires eligible branches and tags through its standard snapshot-expiration commit.Changes
Testing Done
A real Iceberg table integration test removes the property to simulate a legacy table, creates a branch and tag on an older snapshot, runs snapshot expiration, and verifies that the property is backfilled and both references expire. The integration test passes with Iceberg 1.2 and Iceberg 1.5.
The full
OperationsTestsuite passes for both application variants.OpenHouseInternalRepositoryImplTestverifies the table-creation default and preservation of a configured value. The affected Spotless checks pass.Additional Information