You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: migrate Snapshot::try_new_from into SnapshotBuilder (delta-io#1289)
> [!IMPORTANT]
> This PR is split into two commits: (1) material changes, and (2)
callsite updates
This PR integrates `Snapshot::try_new_from` into `SnapshotBuilder`. We
move `Snapshot::try_new_from` into `Snapshot::builder_from` and modify
`SnapshotBuilder` to return an `Arc<Snapshot>` instead of a `Snapshot`.
Also, `Snapshot::builder(table_root)` is renamed to
`Snapshot::builder_for(table_root)`
1. Replaces `Snapshot::try_new_from(existing)` with
`Snapshot::build_from(existing).build()`
2. `SnapshotBuilder::build()` now returns an `Arc<Snapshot>` instead of
a `Snapshot`
3. Renames `Snapshot::builder` to `Snapshot::builder_for`
refactor, updated tests
0 commit comments