Repository navigation
Upgrade lancedb to 0.42.0-beta.21 - #78
Merged
Merged
Conversation
* lance 15.0.0-beta.25, arrow 59, datafusion 55 * keep the C API unchanged and follow the SDK's SQL predicate quoting and empty-table index semantics * collect every namespace page in list_namespaces * suppress Lance blob v2 process-lifetime global schema allocations Signed-off-by: Xuanwo <[email protected]>
This was referenced Nov 21, 2026
* derive the minimum from the locked graph for every supported target * document adaptive IVF probes, nprobes(0) validation and db:// session rejection * add focused C regressions for the three observable behaviors * fold new error variants into the existing LANCEDB_OTHER fallback so the coverage gate does not drop on unreachable mappings Signed-off-by: Xuanwo <[email protected]>
This was referenced Nov 21, 2026
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade the pinned LanceDB SDK from 0.33.0 to v0.42.0-beta.21 and fix the bindings forward without changing the C header or ABI.
lancedbv0.42.0-beta.21 (git tag; 0.42.0 is not published to crates.io)lance/lance-io/lance-namespacev15.0.0-beta.25 (same git tag and source URL as the upstream lancedb workspace, so only onelancecrate is linked)lancedb_connection_list_namespacesdrains the SDK's pagedListing, preserving the previous "return every namespace under the parent" behaviorLANCEDB_OTHERthrough the existing wildcard mapping; the error-code surface is unchangedBLOB_V2_DESC_*LazyLock schema globalsThe binding/package version is unchanged in this PR: version selection and manifest/package alignment belong to the pre-1.0 SemVer work in the release task.
Minimum supported Rust version
Cargo.tomlnow declaresrust-version = "1.95.0"and the README records the same minimum. This is the highestrust-versionin the locked graph for every supported target: x86_64/aarch64 Linux, x86_64/aarch64 macOS and x86_64 Windows GNU.lancedb0.42 and Lance 15 declare 1.95.0; DataFusion 55.3 declares 1.94.0. Hosted CI builds with current stable, so this PR does not claim that a 1.95 Rust build was exercised.Migration notes
Reusable for the first preview release notes.
SQL predicates: string literals use single quotes
LanceDB 0.42 applies SQL-standard quoting to predicates: double quotes delimit identifiers, single quotes delimit string literals.
Before (0.33, no longer valid):
key = "key_42"now parseskey_42as an identifier.After:
key = 'key_42'.Double-quoted identifiers still work and are useful for non-lowercase or reserved column names, e.g.
"key" = 'key_42'or"Column Name" = 'value'.Impact: callers that used double quotes for string values now get a schema error such as
No field named key_42. Replace those literals with single quotes. C tests and thefullexample are updated accordingly.IVF probe defaults are adaptive; fixed 20 is still available
LanceDB 0.42 leaves the IVF probe bounds unset by default and uses Lance's adaptive probe selection (SDK #4168). 0.33 used a fixed minimum/maximum of 20/20.
Call
lancedb_vector_query_nprobes(query, 20, ...)to request the previous fixed behavior; a positive value sets both bounds while search effort is unset. The C API does not exposesearch_effort,minimum_nprobesormaximum_nprobes, so adaptive selection is the only unconfigured mode.nprobes(0) fails at execute/explain, not in the setter
lancedb_vector_query_nprobes()still returnsLANCEDB_SUCCESSand stores the value, matching the existing setter timing. Validation happens when the SDK builds the query:lancedb_vector_query_execute()returnsNULL.lancedb_vector_query_explain_plan()returnsLANCEDB_INVALID_INPUTwith the messagenprobes must be greater than 0.Callers that accept untrusted values should validate them before executing.
Vector index on an initially empty table succeeds
lancedb_table_create_vector_indexon a table with no rows now returnsLANCEDB_SUCCESSand creates a listed index. Before 0.42 it failed with an error.Callers that used that failure to detect an empty table must check
lancedb_table_count_rowsthemselves.Enterprise (
db://) connections reject a custom sessionAttaching a session with
lancedb_connect_builder_session()and executing adb://connection now returnsLANCEDB_NOT_SUPPORTEDwithsession is not supported for LanceDB Enterprise connections(SDK #4486). Embedded connections are unchanged. Enterprise callers must omit the custom session and use server-managed caching.Validation
Host: Amazon Linux 2023, Arrow C++ 26.0.1, Rust 1.98.1.
cmake -S . -B build -G Ninja -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Releaseandninja -C build -j8ninja -C build check(cargo fmt --check,cargo clippy)nprobes(0)at execute/explain, empty-table and missing-column vector index paths,db://custom-session rejectionctest --test-dir build -j4 --output-on-failure: 9/9 passed, including the 7 valgrind suitesexamples/simpleandexamples/fullrun to completion;fullcovers SQL filters, delete predicates, index and merge-insert pathsValgrind: before the suppression, 5 suites failed only on possibly-lost records whose stacks start in Lance's
BLOB_V2_DESC_FIELD/BLOB_V2_DESC_LANCE_FIELDLazyLock initializers; 0 bytes were definitely lost. The suppression matches onlymatch-leak-kinds: possiblestacks containingBLOB_V2_DESC, and the suites pass with the rest of the existing suppression config active.Hosted CI is running on this head.