AIGenLab
EN

UPDATElancedb v0.42.0

LanceDB v0.42.0 blocks merge inserts on version-pinned tables

Version & typev0.42.0 · Feature
In short

LanceDB v0.42.0 backports the 0.42 line's correctness fixes: merge inserts on a pinned handle now return InvalidInput, and hybrid search keeps tied keyword hits at full weight. Audit jobs on branch or time-travel tables should fix their call order first.

What changed in this release

24 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.

Write safety and version handles

  • merge_insert returns InvalidInput on a pinned handle
  • writes resume after checkout_latest()
  • Rust opens a retained version with open_at_version
  • remote tag checkouts validate branch and version

Hybrid search scores

  • fully tied keyword scores count at 1.0
  • both score and rank normalize modes covered
  • RRF and MRR results unchanged

Server-side Function SDK

  • get_function keeps the primary package index URL
  • omitted gpu_count stops serializing 1
  • omitted and explicit 1 differ in runtime digest
  • pairing guidance on FORMAT or LIMIT rejection
  • 0.42 Function description protocol kept

SQL description contracts (candidate builds)

  • view and materialized view descriptions request JSON
  • function, secret and storage integration descriptions too

SDK, embeddings and remote reads (candidate builds)

  • Node select() accepts Expr
  • Node opens source-bearing blob descriptors
  • presigned Blob V2 reads
  • blob snapshot identity after credential refresh
  • two-phase shuffled reads in the dataloader
  • CLI binaries as lancedb-tools wheels
  • Bedrock image embeddings, Cohere v2
  • OpenAI embeddings skip requests without valid text
  • scalar index plugins created by name
  • Permutation.map()

Read the original announcement

On this page
  1. Release inventory
  2. Background
  3. Write safety
  4. Hybrid search
  5. Server-side Functions
  6. SQL descriptions take JSO…
  7. SDK and remote reads
  8. Horizontal view
  9. Version view
  10. Release analysis
  11. Questions
  12. Sources & method

ContextBackground: a pinned handle reads at a version and could still write to the latest one

Teams pin a table to a version to compare runs: one branch keeps old parameters, another tries new ones, or an engineer reproduces a shipped issue.

v0.42.0 closes the gap: local merge inserts skipped the mutability check, so a pinned handle could commit onto the branch's latest version.

The release carries 24 entries in 5 groups. The stable notes list one backport (#5298, 8 commits), covering write safety, hybrid scores and the Function SDK: 12 entries.

The other 12, under SQL descriptions and SDK plus remote reads, come from candidate builds beta.30, .31, .37 and .38 of the same version. The figure below splits the 24 by group; the sections after it walk through all five.

How the 24 entries split across 5 groups: SDK plus remote reads at 10 and Functions at 5 lead; write safety has 4, hybrid search 3, and SQL descriptions 2.
Where the 24 grouped changes landWhere the 24 grouped changes landWrite safety and version handles4Hybrid search scores3Server-side Function SDK5SQL description contracts(candidate builds)2SDK, embeddings and remote reads(candidate builds)10
AIGenLab original

Write safety: merge inserts on a pinned handle now fail, so reads and writes take two steps

  1. Pinned writes fail: local merge_insert now returns InvalidInput on a handle opened at a version.
  2. Split the call: checkout_latest() before a merge write, keep the pinned handle for reads.
  3. No format change: the Lance dependency and data format stay, so existing table files and write paths work as before.

Hybrid search: tied keyword scores are no longer treated as a missing match

  1. No zeroed ties: when all keyword hits score the same, that leg counts at the top weight of 1.0.
  2. Fully tied queries only, in both normalize modes; RRF and MRR rank by list position.
  3. Order inside a tie still comes from _rank; this moves the weight, not the tie-break.

Server-side Functions: omitted GPU counts register, and errors name the version mismatch

  1. Omitted stays omitted: @function(gpu=True) no longer sends gpus_per_worker: 1, so single-GPU catalogs accept it.
  2. Digests shift: the omitted form and an explicit gpu_count=1 differ in runtime digest; re-read them.
  3. Errors name the mismatch: an older catalog rejecting FORMAT or LIMIT adds SDK pairing guidance, keeping the SQL error and request ID.

SQL descriptions take JSON from candidate build beta.37, so hand-built queries need new parsing

  1. Five types change: view, materialized view, function, secret and storage integration now request JSON, a breaking change from candidate build beta.37.
  2. Search your SQL: hand-built description statements and text parsers need a JSON path, and test assertions need to change too.
  3. Only description callers: services that never read descriptions need no work here.

SDK and remote reads: candidate builds land first, with Node expressions and direct remote Blob reads

  1. Node: select() takes Expr values (candidate build beta.38), and blob descriptors carrying a source open directly (candidate build beta.37).
  2. Remote reads: presigned Blob V2 goes direct, credential refresh keeps blob snapshot identity, two-phase shuffled reads land (candidate build beta.31).
  3. Packaging: CLI binaries ship as lancedb-tools wheels, and registered scalar index plugins can be created by name (candidate builds beta.30, beta.31).

Horizontal view: fusion and history reading take a different step at each vendor

Fusion splits three ways: Qdrant leads with rrf and dbsf, Milvus lists RRFRanker and WeightedRanker, LanceDB keeps the linear combination and only changes tied scores.

Qdrant v1.20.2 calls an alpha linear combination without normalization unreliable and fuses with rrf or dbsf; Milvus v3.0.7 lists RRFRanker and WeightedRanker. For history both restore snapshots, while LanceDB opens a read-only table at a version.

Rows run fusion, merge writes and past versions. Bottom line: to open an old version for an audit, pick LanceDB (station view, not tested); a whole-collection rollback is already covered by snapshots.

UpdateLanceDB v0.42.0Qdrant v1.20.2Milvus v3.0.7
Fusion and normalizationlinear combination with min-max normalization; tied keyword scores at 1.0rrf and dbsf; an unnormalized alpha combination called unreliableRRFRanker and WeightedRanker
Merge writes by keymerge_insert on local tables; a pinned handle returns InvalidInputupsert inserts or updates by default, plus insert_only and update_onlyupsert inserts or updates by primary key
Reading a past versionopen_at_version returns a read-only pinned handlesnapshot is a tar archive for archiving or replicationsnapshot is a point-in-time image for rollbacks and testing

Version view: from v0.41.0 through the candidate build to v0.42.0

v0.41.0 shipped on 2026-10-29; candidate build v0.42.0-beta.38 followed on 2026-11-27 with the pinned merge rejection and the tie fix; v0.42.0 landed on 2026-11-30.

The left column is what v0.41.0 did; the right is the step this stable build adds. Numbers are pull requests.

The three steps sit at different layers: writes and scoring change a boundary check, while reading a past version changes the entry point.

Featurev0.41.0v0.42.0
Merge writes on a pinned handleremote restores need a checkout first; local merge inserts have no mutability checkwrites resume after checkout_latest(); the pinned handle stays read-only (#4851)
Score normalization in hybrid searchnormalize="rank" and "score"; RRF and MRR keep keyword scorestied scores count at 1.0 in both modes (#4858)
Reading a retained versionoptimize keeps tagged versions; reading one means opening the latest and checking outopen_at_version opens the retained version directly as a read-only handle (#5218)

Release analysisSummary: fix pinned-handle writes first, and schedule hybrid search and Functions after that

Most affected are teams writing into branch or pinned tables: merge inserts fail until the call returns to the latest version. Read-only services can upgrade on the usual schedule, and old-version repros get a simpler path with open_at_version.

Qdrant routes fusion through rrf and dbsf and calls an unnormalized linear combination unreliable; Milvus lists RRFRanker and WeightedRanker. LanceDB keeps the linear combination and moved tied scores from 0 to 1.0; for history the others restore a snapshot, while LanceDB opens one read-only table.

Station view, not tested: confirm InvalidInput on a pinned handle before scheduling.

Order of work: write-path regression, tied-query samples, Function registration, SQL parsing. Roll out after the regression passes; when something breaks, restore the call order rather than downgrading.

AIGenLab views

Not independently tested

Running one write path on a pinned handle and confirming InvalidInput before scheduling is cheaper than reading release notes.

Station view derived from the error condition in #4851, not independently tested.

The tie fix only touches hybrid queries where every keyword hit ties, so check how often that appears in logs before upgrading this week.

Station view based on the scope section of #4858, not independently tested.

The Function and SQL description groups can wait until the next change to the code that registers functions or builds description queries.

Station view on impact tiers, not independently tested.

Questions

What happens to merge writes that ran on a pinned table?
They return InvalidInput instead of committing to the latest version; call checkout_latest() before writing.
Will the tie fix change my current ranking?
Only queries where every keyword hit scores the same, in both normalize modes; RRF and MRR rank by list position.
Do hand-built SQL description queries need changes?
Yes. Five description types request JSON now, so parsing has to follow.
Does this backport touch the data format?
No. The backport states that the Lance dependency and the data format are unchanged, so existing table files stay usable as they are.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.