Repository navigation
Conversation
Match Java manifest pruning, filtering, bin merging, and per-snapshot delete conflict validation. Preserve retry summaries and sequence inheritance, and use the configured executor while retaining result order and cleanup semantics.
This branch has not been deployed
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.
Problem
The merging snapshot pipeline differs from Java in manifest pruning, retry state, delete validation, and execution order. For example, combining delete manifests from multiple snapshots into one index cannot represent successive deletion vectors for the same data file. Repeated application of copied append manifests can also lose or duplicate summary counts.
Solution
Align
MergingSnapshotUpdate,ManifestFilterManager, andManifestMergeManagerwith Java Iceberg at 0cb5041b9c7a. Keep method order, branch order, and terminology close to the Java implementation to make comparison easier.packEndordering, first-manifest equality, retry caching, replaced-manifest accounting, and writer closure on failure.Retain the existing C++
Result/Status, explicit executor, materialized reader, and transaction staging ownership contracts. This change does not introduce Java's encryption integration or event bus.Validation
Rebased onto
apache/iceberg-cppmain at19573767858c16cb64a19e5c20afb303b8c6ada6and rebuilt in Debug mode on macOS arm64, with tests and the bundled data libraries enabled (ICEBERG_BUILD_REST=OFF).schema_test,manifest_test, andtable_update_testsuites passed: 1,876 tests passed and 48 were conditionally skipped (3/3 CTest targets).pre-commitfor all changed files andgit diff --checkpassed.