diff --git a/Cargo.lock b/Cargo.lock index 9b54a718..acd9d4d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1636,9 +1636,9 @@ dependencies = [ [[package]] name = "lance" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76dad119202267ad3f2a5f5dd4b38a9ce7f66c13c14005c2588f9a18da7f25ab" +checksum = "c9394675e5f03bedf00952fec1ff4d1525a1a4ceff36ae41018bc354e9ff771a" dependencies = [ "arrow", "arrow-arith", @@ -1678,7 +1678,6 @@ dependencies = [ "roaring", "shellexpand", "snafu", - "sqlparser-lance", "tokio", "url", "uuid", @@ -2912,15 +2911,6 @@ dependencies = [ "sqlparser_derive", ] -[[package]] -name = "sqlparser-lance" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d6869d4a81a3594c324d22a21767b8cf91961d30f8f219201f9e10951a16a17" -dependencies = [ - "log", -] - [[package]] name = "sqlparser_derive" version = "0.1.1" diff --git a/rust/ffi/node/Cargo.toml b/rust/ffi/node/Cargo.toml index da6cdba5..9700fc49 100644 --- a/rust/ffi/node/Cargo.toml +++ b/rust/ffi/node/Cargo.toml @@ -15,7 +15,7 @@ arrow-ipc = "40.0" arrow-schema = "40.0" once_cell = "1" futures = "0.3" -lance = "0.5.1" +lance = "0.5.2" vectordb = { path = "../../vectordb" } tokio = { version = "1.23", features = ["rt-multi-thread"] } neon = {version = "0.10.1", default-features = false, features = ["channel-api", "napi-6", "promise-api", "task-api"] } diff --git a/rust/vectordb/Cargo.toml b/rust/vectordb/Cargo.toml index 51d6680d..bd79f5ce 100644 --- a/rust/vectordb/Cargo.toml +++ b/rust/vectordb/Cargo.toml @@ -14,7 +14,7 @@ arrow-data = "40.0" arrow-schema = "40.0" object_store = "0.6.1" snafu = "0.7.4" -lance = "0.5.1" +lance = "0.5.2" tokio = { version = "1.23", features = ["rt-multi-thread"] } [dev-dependencies] diff --git a/rust/vectordb/src/database.rs b/rust/vectordb/src/database.rs index c058e59d..90713ed0 100644 --- a/rust/vectordb/src/database.rs +++ b/rust/vectordb/src/database.rs @@ -20,7 +20,7 @@ use lance::io::object_store::ObjectStore; use snafu::prelude::*; use crate::error::{CreateDirSnafu, Result}; -use crate::table::Table; +use crate::table::{OpenTableParams, Table}; pub struct Database { object_store: ObjectStore, @@ -107,7 +107,25 @@ impl Database { /// /// * A [Table] object. pub async fn open_table(&self, name: &str) -> Result