Skip to content
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

fix: use of deprecated DeltaTable::peek_next_commit #3080

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,11 @@ mod tests {
let path = "../test/tests/data/simple_table_with_checkpoint";
let mut table = crate::open_table_with_version(path, 9).await.unwrap();
assert_eq!(table.version(), 9);
let peek = table.peek_next_commit(table.version()).await.unwrap();
let peek = table
.log_store()
.peek_next_commit(table.version())
.await
.unwrap();
assert!(matches!(peek, PeekCommit::New(..)));

if let PeekCommit::New(version, actions) = peek {
Expand All @@ -570,7 +574,11 @@ mod tests {
)));
};

let peek = table.peek_next_commit(table.version()).await.unwrap();
let peek = table
.log_store()
.peek_next_commit(table.version())
.await
.unwrap();
assert!(matches!(peek, PeekCommit::UpToDate));
}

Expand Down
Loading