From d8d11f48e725e0cf8063f7e08fd991e8b29620f0 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Fri, 10 Jan 2025 12:51:52 -0800 Subject: [PATCH] feat: upgrade to lance 0.22.0b1 (#2011) --- Cargo.toml | 18 +++++++++--------- python/pyproject.toml | 4 ++-- rust/lancedb/examples/full_text_search.rs | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b3a22a0a..60aed7d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,16 +21,16 @@ categories = ["database-implementations"] rust-version = "1.78.0" [workspace.dependencies] -lance = { "version" = "=0.21.1", "features" = [ +lance = { "version" = "=0.22.0", "features" = [ "dynamodb", -], git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-io = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-index = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-linalg = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-table = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-testing = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-datafusion = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } -lance-encoding = { version = "=0.21.1", git = "https://github.com/lancedb/lance.git", tag = "v0.21.1-beta.2" } +], git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-io = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-index = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-linalg = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-table = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-testing = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-datafusion = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } +lance-encoding = { version = "=0.22.0", git = "https://github.com/lancedb/lance.git", tag = "v0.22.0-beta.1" } # Note that this one does not include pyarrow arrow = { version = "53.2", optional = false } arrow-array = "53.2" diff --git a/python/pyproject.toml b/python/pyproject.toml index d556024e..92f03b42 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -4,7 +4,7 @@ name = "lancedb" dynamic = ["version"] dependencies = [ "deprecation", - "pylance==0.21.1b1", + "pylance==0.22.0b1", "tqdm>=4.27.0", "pydantic>=1.10", "packaging", @@ -53,7 +53,7 @@ tests = [ "pytz", "polars>=0.19, <=1.3.0", "tantivy", - "pyarrow-stubs" + "pyarrow-stubs", ] dev = ["ruff", "pre-commit", "pyright"] docs = ["mkdocs", "mkdocs-jupyter", "mkdocs-material", "mkdocstrings[python]"] diff --git a/rust/lancedb/examples/full_text_search.rs b/rust/lancedb/examples/full_text_search.rs index ad9a880f..1d63e308 100644 --- a/rust/lancedb/examples/full_text_search.rs +++ b/rust/lancedb/examples/full_text_search.rs @@ -52,7 +52,7 @@ fn create_some_records() -> Result> { .iter() .step_by(1024) .take(500) - .map(|w| *w) + .copied() .collect::>(); let n_terms = 3; let batches = RecordBatchIterator::new( @@ -95,7 +95,7 @@ async fn search_index(table: &Table) -> Result<()> { .iter() .step_by(1024) .take(500) - .map(|w| *w) + .copied() .collect::>(); let query = words[0].to_owned(); println!("Searching for: {}", query);