From 17532bb8c31fb3b96c3e4b9c281db59106c00a71 Mon Sep 17 00:00:00 2001 From: LanceDB Robot Date: Wed, 25 Nov 2026 13:39:46 -0800 Subject: [PATCH] chore: update lance dependency to v15.1.0-beta.2 (#5217) Bump the Rust workspace and Java Lance dependencies to [Lance v15.1.0-beta.2](https://github.com/lance-format/lance/releases/tag/v15.1.0-beta.2) and pin the matching `pylance` beta in the Python test extra. Raise the Rust toolchain and minimum supported version to 1.98.0 as required by Lance, and address the new Clippy diagnostics. Co-authored-by: Xuanwo --- .github/workflows/rust.yml | 2 +- Cargo.lock | 96 ++++++++++++------------- Cargo.toml | 32 ++++----- java/pom.xml | 2 +- python/Cargo.toml | 2 +- python/pyproject.toml | 2 +- python/uv.lock | 18 ++--- rust-toolchain.toml | 2 +- rust/lancedb/src/remote/client.rs | 2 +- rust/lancedb/src/remote/db.rs | 4 +- rust/lancedb/src/remote/table/insert.rs | 6 +- rust/lancedb/src/table/freshness.rs | 4 +- 12 files changed, 89 insertions(+), 83 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b3805b422..6d9a9911d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -423,7 +423,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - msrv: ["1.95.0"] # This should match up with rust-version in Cargo.toml + msrv: ["1.98.0"] # This should match up with rust-version in Cargo.toml env: # Need up-to-date compilers for kernels CC: clang-18 diff --git a/Cargo.lock b/Cargo.lock index f770d84c7..ff38bc470 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3836,8 +3836,8 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" [[package]] name = "fsst" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "rand 0.9.5", @@ -5315,8 +5315,8 @@ checksum = "e037a2e1d8d5fdbd49b16a4ea09d5d6401c1f29eca5ff29d03d3824dba16256a" [[package]] name = "lance" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arc-swap", "arrow", @@ -5392,8 +5392,8 @@ dependencies = [ [[package]] name = "lance-arrow" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-buffer", @@ -5416,8 +5416,8 @@ dependencies = [ [[package]] name = "lance-bitpacking" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrayref", "crunchy", @@ -5427,8 +5427,8 @@ dependencies = [ [[package]] name = "lance-core" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-buffer", @@ -5466,8 +5466,8 @@ dependencies = [ [[package]] name = "lance-datafusion" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow", "arrow-array", @@ -5498,8 +5498,8 @@ dependencies = [ [[package]] name = "lance-datafusion-exec" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow", "arrow-array", @@ -5525,8 +5525,8 @@ dependencies = [ [[package]] name = "lance-datagen" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow", "arrow-array", @@ -5543,8 +5543,8 @@ dependencies = [ [[package]] name = "lance-derive" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "proc-macro2", "quote", @@ -5553,8 +5553,8 @@ dependencies = [ [[package]] name = "lance-encoding" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-arith", "arrow-array", @@ -5588,8 +5588,8 @@ dependencies = [ [[package]] name = "lance-file" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-arith", "arrow-array", @@ -5619,8 +5619,8 @@ dependencies = [ [[package]] name = "lance-geo" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-schema", @@ -5651,8 +5651,8 @@ dependencies = [ [[package]] name = "lance-index" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arc-swap", "arrow", @@ -5724,8 +5724,8 @@ dependencies = [ [[package]] name = "lance-index-core" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-schema", @@ -5748,8 +5748,8 @@ dependencies = [ [[package]] name = "lance-io" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow", "arrow-array", @@ -5794,8 +5794,8 @@ dependencies = [ [[package]] name = "lance-jsonb" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "byteorder", "ethnum", @@ -5812,8 +5812,8 @@ dependencies = [ [[package]] name = "lance-linalg" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "argminmax 0.7.1", "arrow-array", @@ -5828,8 +5828,8 @@ dependencies = [ [[package]] name = "lance-namespace" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow", "async-trait", @@ -5843,8 +5843,8 @@ dependencies = [ [[package]] name = "lance-namespace-impls" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arc-swap", "arrow", @@ -5898,8 +5898,8 @@ dependencies = [ [[package]] name = "lance-select" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-buffer", @@ -5913,8 +5913,8 @@ dependencies = [ [[package]] name = "lance-table" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow", "arrow-array", @@ -5955,8 +5955,8 @@ dependencies = [ [[package]] name = "lance-table-runtime" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-buffer", @@ -6000,8 +6000,8 @@ dependencies = [ [[package]] name = "lance-testing" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "arrow-array", "arrow-schema", @@ -6014,8 +6014,8 @@ dependencies = [ [[package]] name = "lance-tokenizer" -version = "15.1.0-beta.1" -source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.1#cb512b6d31e9fe7342d29dd0ab89b224d0afe0a2" +version = "15.1.0-beta.2" +source = "git+https://github.com/lance-format/lance.git?tag=v15.1.0-beta.2#fc8f59e53233a46f0d73604d66254142802389c9" dependencies = [ "frostem", "icu_segmenter", diff --git a/Cargo.toml b/Cargo.toml index a39b631e5..7378bec99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,24 +16,24 @@ repository = "https://github.com/lancedb/lancedb" description = "Serverless, low-latency vector database for AI applications" keywords = ["lancedb", "lance", "database", "vector", "search"] categories = ["database-implementations"] -rust-version = "1.95.0" +rust-version = "1.98.0" [workspace.dependencies] -lance = { "version" = "=15.1.0-beta.1", default-features = false, "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-core = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-datagen = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-file = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-io = { "version" = "=15.1.0-beta.1", default-features = false, "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-index = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-jsonb = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-linalg = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-namespace = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-namespace-impls = { "version" = "=15.1.0-beta.1", default-features = false, "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-table = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-testing = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-datafusion = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-encoding = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } -lance-arrow = { "version" = "=15.1.0-beta.1", "tag" = "v15.1.0-beta.1", "git" = "https://github.com/lance-format/lance.git" } +lance = { "version" = "=15.1.0-beta.2", default-features = false, "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-core = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-datagen = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-file = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-io = { "version" = "=15.1.0-beta.2", default-features = false, "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-index = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-jsonb = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-linalg = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-namespace = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-namespace-impls = { "version" = "=15.1.0-beta.2", default-features = false, "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-table = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-testing = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-datafusion = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-encoding = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } +lance-arrow = { "version" = "=15.1.0-beta.2", "tag" = "v15.1.0-beta.2", "git" = "https://github.com/lance-format/lance.git" } lancedb = { path = "rust/lancedb", default-features = false } ahash = "0.8" anyhow = "1" diff --git a/java/pom.xml b/java/pom.xml index 853488c11..a044a1f86 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -28,7 +28,7 @@ UTF-8 15.0.0 - 15.1.0-beta.1 + 15.1.0-beta.2 2.18.12 false 2.30.0 diff --git a/python/Cargo.toml b/python/Cargo.toml index c6e5e9b47..1f935f629 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -8,7 +8,7 @@ license.workspace = true repository.workspace = true keywords.workspace = true categories.workspace = true -rust-version = "1.95.0" +rust-version = "1.98.0" [lib] name = "_lancedb" diff --git a/python/pyproject.toml b/python/pyproject.toml index dd397ef1e..8824272b1 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -64,7 +64,7 @@ tests = [ "polars>=0.19, <=1.32.3", "pyarrow>=16", "pyarrow-stubs>=16.0", - "pylance==15.1.0b1", + "pylance==15.1.0b2", "requests>=2.31.0", "datafusion>=54,<55", "opentelemetry-sdk>=1.30.0", diff --git a/python/uv.lock b/python/uv.lock index 0d2b4ea7d..5b76d5139 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -1912,7 +1912,7 @@ requires-dist = [ { name = "pyarrow-stubs", marker = "extra == 'tests'", specifier = ">=16.0" }, { name = "pydantic", specifier = ">=2.7.4,<3" }, { name = "pylance", marker = "extra == 'pylance'", specifier = ">=15.0.0b3" }, - { name = "pylance", marker = "extra == 'tests'", specifier = "==15.1.0b1" }, + { name = "pylance", marker = "extra == 'tests'", specifier = "==15.1.0b2" }, { name = "pyright", marker = "extra == 'dev'", specifier = ">=1.1.350" }, { name = "pytest", marker = "extra == 'tests'", specifier = ">=7.0" }, { name = "pytest-asyncio", marker = "extra == 'tests'", specifier = ">=0.21" }, @@ -3649,20 +3649,20 @@ crypto = [ [[package]] name = "pylance" -version = "15.1.0b1" +version = "15.1.0b2" source = { registry = "https://pypi.fury.io/lance-format/" } dependencies = [ { name = "lance-namespace" }, { name = "pyarrow" }, ] wheels = [ - { url = "https://pypi.fury.io/lance-format/-/ver_RBGf7/pylance-15.1.0b1-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:442f7f355833e9275ad1835dca8fcd6fe0c092e80c6bd597e8864e463963f423" }, - { url = "https://pypi.fury.io/lance-format/-/ver_UKH5z/pylance-15.1.0b1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb2419dbb246c6de996ff3101dd1eddec521e6670b6a4a37799b1fc0840cad2c" }, - { url = "https://pypi.fury.io/lance-format/-/ver_1E3GZI/pylance-15.1.0b1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5f32a4cd522a14e1c14206ad9e0593bf3f5c68521f04389f01441bfb2ad55a0b" }, - { url = "https://pypi.fury.io/lance-format/-/ver_8r33d/pylance-15.1.0b1-cp310-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:cacdca6260155f86a52401bab4965702c0921fdd3d481fbcdf95ee16503f1bbd" }, - { url = "https://pypi.fury.io/lance-format/-/ver_2btbqJ/pylance-15.1.0b1-cp310-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a8d79fe1053fbafeb2863259cf36bec3fa179b366592fe45a5e09ae9de4e1bc8" }, - { url = "https://pypi.fury.io/lance-format/-/ver_RQD3W/pylance-15.1.0b1-cp310-abi3-win_amd64.whl", hash = "sha256:2b649d31498a810d4e8a1120a1a1a59236982bf6b9151ecf3d83686c5bfe6f72" }, - { url = "https://pypi.fury.io/lance-format/-/ver_1N9JD1/pylance-15.1.0b1-cp310-abi3-win_arm64.whl", hash = "sha256:dcb948c46eb62f5088843bd39b3dcc36d81ba3dab03410366aa0769f9114358f" }, + { url = "https://pypi.fury.io/lance-format/-/ver_vSWFg/pylance-15.1.0b2-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:297f8d3059be999ade63b04d9ce592b71f3c6d5d7fd70cdbb3d2f6a65bc310f2" }, + { url = "https://pypi.fury.io/lance-format/-/ver_28KJav/pylance-15.1.0b2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:414bfef47bd01a159f392a8e8e099fee7c9ab1be2c847ca2cd224f623fdd277e" }, + { url = "https://pypi.fury.io/lance-format/-/ver_7FE7R/pylance-15.1.0b2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:841c44301b060aeb4309bc64c8b60be17b5a12c4801aca2a7f6ded1dd2e414e9" }, + { url = "https://pypi.fury.io/lance-format/-/ver_2jMYDF/pylance-15.1.0b2-cp310-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5979250018dc7ccabb8193f9f4c01b3c581d48adedd7a73b9ebfcc0104bb7d19" }, + { url = "https://pypi.fury.io/lance-format/-/ver_1XQt8E/pylance-15.1.0b2-cp310-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:bd67e0ada56f9574c12a4300e0ceccb16830d2b16ebc7dabaf1ced38cc7d8593" }, + { url = "https://pypi.fury.io/lance-format/-/ver_H8fyY/pylance-15.1.0b2-cp310-abi3-win_amd64.whl", hash = "sha256:120ed03b30176db76fa1c25223531a59abb77e5a80a9c85923914ad161132904" }, + { url = "https://pypi.fury.io/lance-format/-/ver_zdLur/pylance-15.1.0b2-cp310-abi3-win_arm64.whl", hash = "sha256:5eebf0d2eba1d32ab3ef43c1d69614e265bf7e428480601a4287e3fb33290292" }, ] [[package]] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 398f3f015..b73c15e3c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.97.0" +channel = "1.98.0" diff --git a/rust/lancedb/src/remote/client.rs b/rust/lancedb/src/remote/client.rs index 59d5b81de..c15f72904 100644 --- a/rust/lancedb/src/remote/client.rs +++ b/rust/lancedb/src/remote/client.rs @@ -19,7 +19,7 @@ const REQUEST_ID_HEADER: HeaderName = HeaderName::from_static("x-request-id"); const DEFAULT_BLOB_REQUEST_CONCURRENCY: usize = 8; /// M1 prototype routing threshold for direct Blob reads. It stays internal /// until the acceptance benchmark establishes the right default. -pub(crate) const DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES: u64 = 10 * 1024 * 1024; +const DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES: u64 = 10 * 1024 * 1024; pub fn redact_sensitive_headers(headers: &mut HeaderMap) { const SENSITIVE_HEADERS: [&str; 5] = [ diff --git a/rust/lancedb/src/remote/db.rs b/rust/lancedb/src/remote/db.rs index 39017be37..aa8b6f23a 100644 --- a/rust/lancedb/src/remote/db.rs +++ b/rust/lancedb/src/remote/db.rs @@ -2857,7 +2857,9 @@ mod tests { let mut bytes = vec![0; 128 * 72 * 1024]; SmallRng::seed_from_u64(4977).fill_bytes(&mut bytes); let strings: Vec = bytes - .chunks_exact(72 * 1024) + .as_chunks::<{ 72 * 1024 }>() + .0 + .iter() .map(|chunk| chunk.iter().map(|b| char::from(b'!' + b % 90)).collect()) .collect(); let mut batches = Vec::new(); diff --git a/rust/lancedb/src/remote/table/insert.rs b/rust/lancedb/src/remote/table/insert.rs index 0801880f2..f091a0bb1 100644 --- a/rust/lancedb/src/remote/table/insert.rs +++ b/rust/lancedb/src/remote/table/insert.rs @@ -1282,7 +1282,8 @@ mod tests { use rand::{RngCore, SeedableRng, rngs::SmallRng}; let mut bytes = vec![0; 128 * 1024]; SmallRng::seed_from_u64(7).fill_bytes(&mut bytes); - let values = arrow_array::LargeBinaryArray::from_iter_values(bytes.chunks_exact(1024)); + let values = + arrow_array::LargeBinaryArray::from_iter_values(bytes.as_chunks::<1024>().0.iter()); let schema = Arc::new(ArrowSchema::new(vec![Field::new( "payload", DataType::LargeBinary, @@ -1735,7 +1736,8 @@ mod tests { let mut batches = Vec::new(); for shift in [0, 1] { let values = BinaryArray::from_iter( - std::iter::once(None).chain(bytes.chunks_exact(1024).skip(shift).map(Some)), + std::iter::once(None) + .chain(bytes.as_chunks::<1024>().0.iter().skip(shift).map(Some)), ); let keys = UInt8Array::from(vec![ Some(120), diff --git a/rust/lancedb/src/table/freshness.rs b/rust/lancedb/src/table/freshness.rs index 5d9ee26a6..e1c896e9f 100644 --- a/rust/lancedb/src/table/freshness.rs +++ b/rust/lancedb/src/table/freshness.rs @@ -687,7 +687,9 @@ fn decode_legacy_sidecar(bytes: &[u8]) -> Result { return Err(malformed()); } let signatures = body - .chunks_exact(12) + .as_chunks::<12>() + .0 + .iter() .map(|entry| { let fragment_id = u32::from_le_bytes(entry[..4].try_into().unwrap()); let hash = u64::from_le_bytes(entry[4..].try_into().unwrap());