From 97e7fcf7bd0e5ab0e8a56047373c442dc46ce3e1 Mon Sep 17 00:00:00 2001 From: Jonas Irgens Kylling Date: Sun, 22 Dec 2024 18:53:48 +0100 Subject: [PATCH] fix: use of deprecated DeltaTable::peek_next_commit Signed-off-by: Jonas Irgens Kylling --- crates/core/src/lib.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs index 2bd1677e13..6f6abdc8aa 100644 --- a/crates/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -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 { @@ -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)); }