Repository navigation
Releases
v0.8.0
Added
- Add
LanceDB.History.refresh/1to refresh a live table handle in place to
the latest version on its branch (bypassing:read_consistency_interval_ms)
while preserving session caches and rejecting pinned snapshot handles.
Changed
- Upgrade embedded LanceDB SDK to
0.42.1, Lance to15.0.0, Arrow to59
(59.3.3), and DataFusion to55.3.0:- Hybrid RRF now uses 1-based ranks (
1 / (rrf_k + rank)starting at rank 1). Query.take_row_ids/3now preserves requested row-ID order and repeats
duplicate IDs for found rows.- Full-text searches with
order_bynow sort all matching documents before
applying offset and limit. - NGram scalar indexes now accelerate
ILIKEand simplified case-insensitive
regexp_likefilters with usable trigrams. - Tightening nullability via
SchemaEvolution.alter_columns/2(nullable: false)
rejects uncompacted soft-deleted rows that still store physical nulls until
compacted withmaterialize_deletions: true, materialize_deletions_threshold: 0.0. - RabitQ (
:ivf_rq) default:num_bitsis now5, and HNSW search-timeef
defaults tomax(1.5 * k, 256).
- Hybrid RRF now uses 1-based ranks (
- Decode
Table.update/3literal values directly viaterm_codec, adding
support for{:binary, bytes}packed vectors in literal updates. - Remove obsolete Lance 14 workarounds (
compat/fts.rsJSON unwind wrapper and
redundantdiagnostics.rspanic boundary) and delegate shallow-clone commits
to Lance 15'sDataset::shallow_clone.
Native build e285d8e1a478dc5b1e45e398c21df89493706ec8
Native source: e285d8e
Workflow source: e285d8e
SDK: 0.42.1
NIF ABI: 2.15
Workflow run: https://github.com/preciz/lancedb_ex/actions/runs/46639199108
v0.7.0
Removed (Breaking)
- Remove write support for Lance's obsolete
"legacy"(0.1) storage format.
data_storage_versionnow accepts only:stable,:next,"2.0","2.1",
"2.2", and"2.3"("legacy"raisesArgumentError). Legacy storage
version overrides instorage_optionsand writes into externally opened
0.1tables return{:error, %LanceDB.Error{kind: :unsupported}}; existing
0.1tables remain readable.
Fixed
- Preserve destination table schema metadata when overwriting via single-batch
Table.add(table, Source.batches([batch]), mode: :overwrite). - Guard float-narrowing
SchemaEvolution.alter_columns/2casts (such as
float64 -> float32/float16,float32 -> float16, wide integer/decimal to
float16, and nested container casts) against overflowing finite values to
non-finiteInfinitybefore committing. - Capture
History.restore/2commit versions directly from the restore
transaction rather than re-reading branch HEAD, preventing races with
concurrent writers. - Decode
lance.jsoncolumns toarrow.jsonUTF-8 consistently on typed
float16/float64vector queries soQuery.schema/1,
Query.stream_batches/2, and hybrid fusion agree. - Allow
:large_string(LargeUtf8) join keys inTable.upsert/3and
Table.merge/3. - Preserve row count when a final query projection has zero output columns
(for example hybrid search withcolumns: [:_rowid],with_row_id: false,
anddisable_scoring_autoprojection: true).
Native build 961aaec29d07f1d519dd029ab16995aac8708249
Native source: 961aaec
Workflow source: 961aaec
SDK: 0.41.0
NIF ABI: 2.15
Workflow run: https://github.com/preciz/lancedb_ex/actions/runs/46380269108
v0.6.0
Added
- Direct Arrow <-> BEAM term codecs (
term_codec) eliminating JSON text and
hex-encoding round-trips on both reads and writes, and eliminating redundant
validation passes for BEAM-built batches. - Single-shot
Query.all/1fast path (query_allNIF) encoding results
directly into the reply's owned BEAM environment in one native round-trip,
and single-shotTable.add/3fast path (ingest_add_batch) for single-batch
commit: :onceand per-batchcommit: :batchwrites, plus skip unnecessary
ingest_abortafter successfulingest_finishand increase streaming writer
channel capacity to 4. - Columnar
LanceDB.Batch.to_columns/2(with optionalpacked_vectors: true
emitting native-endian vector binaries), its companion
LanceDB.Batch.from_columns/2(supporting per-row or flat contiguous
{:binary, bytes}vector columns such as 2DNxtensors), and
{:binary, bytes}packed native-endian vector input across
Batch.from_rows/2,Batch.from_columns/2, explicit-schema row writes
(Connection.create_table/4,Table.add/3,Table.upsert/3,Table.merge/3,
and column backfills), and vector/batch/multivector/hybrid/Hamming queries. - Paired throughput benchmark (
benchmarks/throughput.exs) documenting 10×–106×
batch codec speedups, 12.8×Query.all/1(100 rows) speedup, and 7.8×
row-write speedup versusv0.5.1.
Changed
- Upgrade to LanceDB SDK 0.41.0 and Lance 14.0.2 (Arrow 58.4.0, Rustls 0.23.46)
and bump the Rust toolchain to1.100.1. Remove the obsoleteremoteCargo
feature workaround (upstream #4142 fixed) and thecompat/ngram.rsSQL rewrite
workaround (fixed in Lance 14.0.2). Support 0.41.0's 4-field blob storage
layout alongside legacy 2-field tables. - Simplify the internal native/backend NIF dispatch layer to direct static calls
(removingapply/3indirection), retire the legacy Elixir record-staging
module, and use pre-interned static atoms inwire.rs.
Fixed
- Reject nulls on writes targeting Lance
"legacy"(0.1) storage format where
the v1 plain encoder would otherwise silently replace nulls with zero/false
values, preserving prior rows and table versions. - Support non-Latin-1 UTF-8 atom keys across row, columnar, struct, Arrow map,
and JSON object inputs, including duplicate-key collision detection. - Keep read admission permits and caller-death cancellation active through
Query.all/1row conversion before releasing and delivering replies. - Encode Arrow
Nulloutput columns (such asselect: [value: "NULL"]) as
nil, propagatepacked_vectors: trueinto nested list and struct vector
columns, and quote nested field paths properly in singletonbatch_search/3
projections.
Removed (Breaking)
- Remove upstream-experimental SQL computed columns and refresh jobs
(SchemaEvolution.add_computed_columns/2,Table.write_schema/1,
Table.refresh_column/2,Table.refresh_column_async/2,
LanceDB.RefreshResult), which LanceDB 0.41.0 moved behind its
experimental-functionsfeature. - Remove bespoke non-SDK features to align strictly with LanceDB's core SDK:
LanceDB.TableCache,LanceDB.FTS.prepare/2-3/LanceDB.FTS.Prepared,
custom Elixir hybrid reranker callbacks (LanceDB.Reranker,:reranker,
:normalize— native RRF via:rrf_kremains), and legacy capability-gating
test probes.
Migration from 0.5.1
TableCache: Retain aLanceDB.Connection(configured with
:index_cache_size_bytesand:metadata_cache_size_bytes) in your
application state, open tables withConnection.open_table/3, and warm
indexes explicitly withIndex.prewarm/2.FTS.prepare/2-3: Tokenize text withTokenizer.tokenize/2-3and compose
clauses withFTS.match/2andFTS.boolean/1.- Custom hybrid rerankers (
:reranker/:normalize): Use native RRF via
:rrf_k, or runQuery.search/3andQuery.full_text_search/3with
with_row_id: trueand fuse results in Elixir. - SQL computed columns: Use
SchemaEvolution.add_columns/2or
SchemaEvolution.backfill_columns/3for materialized derived columns and
Table.schema/1for table schemas.
Native build acb20805ccf6731c40e1cb4bafb0976bb3978ac1
Native source: acb2080
Workflow source: acb2080
SDK: 0.41.0
NIF ABI: 2.15
Workflow run: https://github.com/preciz/lancedb_ex/actions/runs/46290054395
v0.5.1
- Update the native dependency lock to Rustls 0.23.46 and Quinn 0.11.19,
incorporating their published security fixes without changing LanceDB 0.40.0
or Lance 13.0.0. Replace yanked ChaCha20 0.10.1 with 0.10.2. Rebuild all
supported native targets with these dependencies. - Check RustSec advisories in source CI and before native artifact builds or
verification, and check Hex dependency advisories in source CI. Known
vulnerabilities and yanked crates fail these checks; upstream maintenance
notices remain visible.
This release includes the features prepared for 0.5.0. The 0.5.0 candidate
was tagged but was not published to Hex; its tag remains unchanged.
- Add list-element full-text indexes and match/phrase queries with public nested
field paths. Preserve_doc_indexthrough projections, streams and schema
inspection, propagate granularity through prepared queries, support saved
analyzer lookup beneath lists, and reject element hits in hybrid fusion. - Add SQL computed-column declarations, explicit refresh and typed refresh jobs.
Use writable-only input schemas for row and Arrow ingestion, merges and upserts;
exposeTable.write_schema/1, preserve declaration and freshness metadata, and
guard SDK overwrite and nested-metadata cases that would invalidate declarations
or later refreshes. Index jobs retain their existing result contract. - Add the boolean
:disable_scoring_autoprojectionquery option to omit automatic
distance, full-text, and hybrid relevance scores while preserving explicitly
selected scores, internal reranker inputs, row IDs, and batch query indexes. - Add
Table.set_unenforced_primary_key/2for persisted single-column key
declarations, using SDK type, nullability, immutability and concurrent-commit
checks. Preserve installed key markers when replacing user field metadata. - Add explicit
:bloom_filterscalar indexes for equality, membership, and null
filters, with per-filter row counts, false-positive targets, and the existing
synchronous, asynchronous, and maintenance APIs. - Add explicit
:ngramindexes for substring,LIKE, and supported regular-expression
filters on string and large-string columns, with the existing index lifecycle
and asynchronous creation APIs. Preserve matches for untokenizable Unicode,
punctuation, and computed substring patterns despite the pinned SDK's index
fallback bug. - Add explicit
:zonemapscalar indexes with synchronous and asynchronous
creation, reusable definitions, and empty-index creation viatrain: false.
The LanceDB SDK remains at 0.40.0 and Lance at 13.0.0. This release selects new
verified native binaries for Linux x86_64, Linux ARM64, and Apple Silicon macOS
containing these features. Normal installation downloads the selected binary
without compiling Rust.
Breaking changes
- Reserve
_doc_indexas a computed projection alias for list-element FTS
metadata. Rename any existingselect:alias using this name.
Native build cb917f97b7878c5350f6da695b8c94e5b3a9f75c
Native source: cb917f9
Workflow source: cb917f9
SDK: 0.40.0
NIF ABI: 2.15
Workflow run: https://github.com/preciz/lancedb_ex/actions/runs/38918661882
Native build 024163b8be984074a8834f67925ba09f37002ad0
Native source: 024163b
Workflow source: 024163b
SDK: 0.40.0
NIF ABI: 2.15
Workflow run: https://github.com/preciz/lancedb_ex/actions/runs/38910712274
v0.4.0
- Clarify table cache success and structured error return values, including
background warming failures, saturation, missing entries, and invalidation. - Document pipeable query builders, explicit expression literals, reusable index
definitions, blob column discovery, and batch construction and inspection. - Return structured
LanceDB.Errorvalues fromBatch.schema/1on JSON decoding
failures, retaining the decoder reason and emitting a completed operation span. - Correct cursor close and native batch-pull typespecs to match their synchronous
return values and asynchronous acknowledgements. - Reject snapshot mutations before planning or execution, and consistently report
native write validation versus execution boundaries, including index, tag,
branch, maintenance, clone and table deletion failures. - Enforce cursor ownership before returning cached terminal results. Let blob
cursor inspection proceed without read admission, and check closed empty blob
handles during lazy stream enumeration. - Run native dispatch on normal schedulers while keeping synchronous JSON and
bulk term decoding on dirty CPU schedulers. Verify the new native operation
contracts in source builds and against every packaged candidate binary. - Distinguish malformed Arrow descriptions from unsupported conversions, and
report returned conversion errors as completed operation spans. - Validate connection and backfill arguments inside operation spans, raising
ArgumentErrorconsistently for invalid inputs. - Preserve structured database failures during backfills, source consumption
and cleanup without replacing primary errors or confirmed write progress. - Preserve stream error operation labels during cursor opening, batch pulling,
and row conversion. - Expose
TableCache.connection/2for shared connection access, including empty
databases. Share supervised setup with fetch/warming requests and bound waiting
callers through existing request limits without consuming table capacity. - Add
Maintenance.optimize/1for the standard SDK compaction, seven-day cleanup,
and index optimization sequence. Return compaction and cleanup statistics under
one native write-admission permit. - Add reusable FTS query preparation using explicit or saved index analyzers.
Preserve original spellings alongside distinct analyzed terms, build exact
and fuzzy alternatives per term, and support length-based typo distances,
exact numeric terms, scoring boosts, and input limits. Initially supports
plain text with the simple tokenizer. Existing string-based matches retain
their behavior. - Validate imported Arrow batches at the shared writer boundary, covering finite
floats, temporal ranges, decimal precision, nullability, vector elements,
map keys, blob inputs and JSONB payloads. Compile checks once per writer and
inspect only reachable values without row conversion. Guard JSONB row decoding
through the same traversal. - Isolate fresh consumer verification from inherited Mix environment, target,
project, build and dependency paths so custom maintainer settings cannot
redirect the temporary project's compilation or release. - Gate FTS preparation and standard optimization checks on native
support. Run Arrow value-validation regressions in source builds and explicitly
include them for every packaged candidate native binary. - Initialize the shared native runtime with Rust's standard
LazyLock, removing
the native crate's directlazy_staticdependency. - Remove redundant table-name and source-schema normalization, unused formatter
and package-ignore entries, and obsoletemerge_insertadvice in write errors.
Error messages now point toTable.upsertandTable.merge.
Breaking changes
- Native Arrow batch writes reject values that violate the logical schema,
including inputs previously accepted by some write paths. Invalid values are
rejected before the batch reaches the SDK; earlier confirmedcommit: :batch
commits remain. Review external Arrow producers against the schema's value
constraints before upgrading. - JSONB row conversion rejects malformed payloads before invoking the SDK
decoder, returning an invalid-data error instead of passing corrupt data to it.