Skip to content

Commit

Permalink
fix: use of deprecated DeltaTable::peek_next_commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jkylling committed Dec 22, 2024
1 parent cdc6473 commit 74922ad
Showing 1 changed file with 10 additions and 2 deletions.
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

0 comments on commit 74922ad

Please sign in to comment.