fix: fix remote restore api to always checkout latest version (#2291)

Fix restore to always checkout latest version, following local restore
api implementation

a1d1833a40/rust/lancedb/src/table.rs (L1910)
Otherwise
table.create_table -> version 1
table.add_table -> version 2
table.checkout(1), table.restore() -> the version remains at 1 (should
checkout_latest inside restore method to update version to latest
version and allow write operation)
table.checkout_latest() -> version is 3
can do write operations
This commit is contained in:
LuQQiu
2025-03-29 22:46:57 -07:00
committed by GitHub
parent a1d1833a40
commit b9bdb8d937

View File

@@ -434,6 +434,7 @@ impl<S: HttpSend> BaseTable for RemoteTable<S> {
let (request_id, response) = self.client.send(request, true).await?;
self.check_table_response(&request_id, response).await?;
self.checkout_latest().await?;
Ok(())
}