Skip to content

feat(iceberg): Add snapshot utils to scan ancestors#2285

Merged
blackmwk merged 4 commits intoapache:mainfrom
CTTY:ctty/ancestors
Apr 1, 2026
Merged

feat(iceberg): Add snapshot utils to scan ancestors#2285
blackmwk merged 4 commits intoapache:mainfrom
CTTY:ctty/ancestors

Conversation

@CTTY
Copy link
Copy Markdown
Collaborator

@CTTY CTTY commented Mar 24, 2026

Which issue does this PR close?

What changes are included in this PR?

  • Add Ancestors to help scan past snapshots
  • Moved existing util to the new utils mod

Are these changes tested?

Yes

@CTTY CTTY marked this pull request as ready for review March 24, 2026 23:28
Copy link
Copy Markdown
Contributor

@blackmwk blackmwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CTTY for this pr!

Comment thread crates/iceberg/src/util/snapshot.rs
Comment thread crates/iceberg/src/util/snapshot.rs Outdated
Comment thread crates/iceberg/src/util/snapshot.rs
Comment thread crates/iceberg/src/util/snapshot.rs
Copy link
Copy Markdown
Contributor

@blackmwk blackmwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CTTY for this pr!

@blackmwk blackmwk merged commit 626de2e into apache:main Apr 1, 2026
20 checks passed
@CTTY CTTY deleted the ctty/ancestors branch April 13, 2026 04:36
t3hw pushed a commit to t3hw/iceberg-rust that referenced this pull request Apr 14, 2026
## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

- Closes apache#2241 

## What changes are included in this PR?
- Add `Ancestors` to help scan past snapshots
- Moved existing util to the new utils mod
<!--
Provide a summary of the modifications in this PR. List the main changes
such as new features, bug fixes, refactoring, or any other updates.
-->

## Are these changes tested?
Yes
<!--
Specify what test covers (unit test, integration test, etc.).

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
t3hw pushed a commit to t3hw/iceberg-rust that referenced this pull request Apr 16, 2026
Promote `snapshot` to a top-level crate module (`crate::snapshot`)
instead of nesting it under `util`. The `util` module reverts to a flat
file now that it only contains `available_parallelism()`.

Closes apache#2241

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
t3hw added a commit to t3hw/iceberg-rust that referenced this pull request Apr 18, 2026
The `feat(iceberg): Add snapshot utils to scan ancestors (apache#2285)` feature
already shipped in upstream main as `crate::util::snapshot`. This branch
carried a structural variant placing `snapshot` at the crate root
(`crate::snapshot`) with `util` as a flat `util.rs`. When rebasing
`patched-0.9` onto a future release that includes apache#2285, upstream's
`crate::util::snapshot` path would collide with our top-level layout.

Move to upstream's layout ahead of time so the rebase is a clean
fast-forward:

  crates/iceberg/src/snapshot.rs -> crates/iceberg/src/util/snapshot.rs
  crates/iceberg/src/util.rs     -> crates/iceberg/src/util/mod.rs
  crates/iceberg/src/lib.rs      -- drop `pub mod snapshot;`

No in-crate code imports `crate::snapshot::*`, so no internal imports
change. Downstream consumers of this fork that reference
`iceberg::snapshot::*` must update to `iceberg::util::snapshot::*` and
will be fixed out-of-band.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
toutane pushed a commit to DataDog/iceberg-rust that referenced this pull request Apr 30, 2026
## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

- Closes apache#2241

## What changes are included in this PR?
- Add `Ancestors` to help scan past snapshots
- Moved existing util to the new utils mod
<!--
Provide a summary of the modifications in this PR. List the main changes
such as new features, bug fixes, refactoring, or any other updates.
-->

## Are these changes tested?
Yes
<!--
Specify what test covers (unit test, integration test, etc.).

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->

(cherry picked from commit 626de2e)
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

Successfully merging this pull request may close these issues.

Add helpers to scan snapshot ancestors

2 participants