-
Couldn't load subscription status.
- Fork 118
refactor: introduce SnapshotRef type alias #1299
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1299 +/- ##
==========================================
- Coverage 83.97% 83.96% -0.02%
==========================================
Files 111 111
Lines 26250 26250
Branches 26250 26250
==========================================
- Hits 22044 22041 -3
- Misses 3109 3110 +1
- Partials 1097 1099 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
awesome, LGTM! just a quick fix in docstrings
| //! | ||
| //! ```no_run | ||
| //! # use std::sync::Arc; | ||
| //! # use delta_kernel::checkpoint::CheckpointDataIterator; |
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.
ah looks like some of the docs are broken due to no longer pulling in Snapshot. and btw you can test with cargo doc and/or cargo doc --open (latter is just a nice shortcut to pull up the docs we build after they are compiled)
we could just do something like add this at the bottom:
[`Snapshot::checkpoint`]: crate::Snapshot::checkpoint
|
oh and I think need to peek at tests as well |
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.
Looks good, but I think you missed a few spots:
kernel/examples/common/src/lib.rs
65:pub fn get_scan(snapshot: Arc<Snapshot>, args: &ScanArgs) -> DeltaResult<Option<Scan>> {
kernel/examples/write-table/src/main.rs
126:) -> DeltaResult<Arc<Snapshot>> {
kernel/src/log_compaction/tests.rs
8:fn create_mock_snapshot() -> Arc<Snapshot> {
18:fn create_multi_version_snapshot() -> Arc<Snapshot> {
kernel/src/log_compaction/writer.rs
33: snapshot: Arc<Snapshot>,
48: snapshot: Arc<Snapshot>,
kernel/src/snapshot/builder.rs
48: pub(crate) fn new_from(existing_snapshot: Arc<Snapshot>) -> Self {
63: /// Create a new [`Snapshot`]. This returns a [`SnapshotRef`] (`Arc<Snapshot>`), perhaps
70: pub fn build(self, engine: &dyn Engine) -> DeltaResult<Arc<Snapshot>> {
looks like they were introduced during the rebase. got to them now @nicklan |
6223752 to
7ecf962
Compare
7ecf962 to
cacd566
Compare
- Add SnapshotRef type alias - Update imports and documentation
058adb1 to
844b024
Compare
844b024 to
c0bf53d
Compare
What changes are proposed in this pull request?
introduce
SnapshotReftype alias forArc<Snapshot>SnapshotReftype alias forArc<Snapshot>#1297How was this change tested?
Existing tests.