Skip to content

Releases

v0.8.0

Choose a tag to compare

@preciz preciz released this 01 Dec 14:07

Hex package · Documentation

Added

  • Add LanceDB.History.refresh/1 to 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 to 15.0.0, Arrow to 59
    (59.3.3), and DataFusion to 55.3.0:
    • Hybrid RRF now uses 1-based ranks (1 / (rrf_k + rank) starting at rank 1).
    • Query.take_row_ids/3 now preserves requested row-ID order and repeats
      duplicate IDs for found rows.
    • Full-text searches with order_by now sort all matching documents before
      applying offset and limit.
    • NGram scalar indexes now accelerate ILIKE and simplified case-insensitive
      regexp_like filters with usable trigrams.
    • Tightening nullability via SchemaEvolution.alter_columns/2 (nullable: false)
      rejects uncompacted soft-deleted rows that still store physical nulls until
      compacted with materialize_deletions: true, materialize_deletions_threshold: 0.0.
    • RabitQ (:ivf_rq) default :num_bits is now 5, and HNSW search-time ef
      defaults to max(1.5 * k, 256).
  • Decode Table.update/3 literal values directly via term_codec, adding
    support for {:binary, bytes} packed vectors in literal updates.
  • Remove obsolete Lance 14 workarounds (compat/fts.rs JSON unwind wrapper and
    redundant diagnostics.rs panic boundary) and delegate shallow-clone commits
    to Lance 15's Dataset::shallow_clone.

Source

Native build e285d8e1a478dc5b1e45e398c21df89493706ec8

Choose a tag to compare

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

Choose a tag to compare

@preciz preciz released this 30 Nov 09:59

Hex package · Documentation

Removed (Breaking)

  • Remove write support for Lance's obsolete "legacy" (0.1) storage format.
    data_storage_version now accepts only :stable, :next, "2.0", "2.1",
    "2.2", and "2.3" ("legacy" raises ArgumentError). Legacy storage
    version overrides in storage_options and writes into externally opened
    0.1 tables return {:error, %LanceDB.Error{kind: :unsupported}}; existing
    0.1 tables 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/2 casts (such as
    float64 -> float32/float16, float32 -> float16, wide integer/decimal to
    float16, and nested container casts) against overflowing finite values to
    non-finite Infinity before committing.
  • Capture History.restore/2 commit versions directly from the restore
    transaction rather than re-reading branch HEAD, preventing races with
    concurrent writers.
  • Decode lance.json columns to arrow.json UTF-8 consistently on typed
    float16/float64 vector queries so Query.schema/1,
    Query.stream_batches/2, and hybrid fusion agree.
  • Allow :large_string (LargeUtf8) join keys in Table.upsert/3 and
    Table.merge/3.
  • Preserve row count when a final query projection has zero output columns
    (for example hybrid search with columns: [:_rowid], with_row_id: false,
    and disable_scoring_autoprojection: true).

Source

Native build 961aaec29d07f1d519dd029ab16995aac8708249

Choose a tag to compare

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

Choose a tag to compare

@preciz preciz released this 29 Nov 20:34

Hex package · Documentation

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/1 fast path (query_all NIF) encoding results
    directly into the reply's owned BEAM environment in one native round-trip,
    and single-shot Table.add/3 fast path (ingest_add_batch) for single-batch
    commit: :once and per-batch commit: :batch writes, plus skip unnecessary
    ingest_abort after successful ingest_finish and increase streaming writer
    channel capacity to 4.
  • Columnar LanceDB.Batch.to_columns/2 (with optional packed_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 2D Nx tensors), 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 versus v0.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 to 1.100.1. Remove the obsolete remote Cargo
    feature workaround (upstream #4142 fixed) and the compat/ngram.rs SQL 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
    (removing apply/3 indirection), retire the legacy Elixir record-staging
    module, and use pre-interned static atoms in wire.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/1 row conversion before releasing and delivering replies.
  • Encode Arrow Null output columns (such as select: [value: "NULL"]) as
    nil, propagate packed_vectors: true into nested list and struct vector
    columns, and quote nested field paths properly in singleton batch_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-functions feature.
  • 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_k remains), and legacy capability-gating
    test probes.

Migration from 0.5.1

  • TableCache: Retain a LanceDB.Connection (configured with
    :index_cache_size_bytes and :metadata_cache_size_bytes) in your
    application state, open tables with Connection.open_table/3, and warm
    indexes explicitly with Index.prewarm/2.
  • FTS.prepare/2-3: Tokenize text with Tokenizer.tokenize/2-3 and compose
    clauses with FTS.match/2 and FTS.boolean/1.
  • Custom hybrid rerankers (:reranker / :normalize): Use native RRF via
    :rrf_k, or run Query.search/3 and Query.full_text_search/3 with
    with_row_id: true and fuse results in Elixir.
  • SQL computed columns: Use SchemaEvolution.add_columns/2 or
    SchemaEvolution.backfill_columns/3 for materialized derived columns and
    Table.schema/1 for table schemas.

Source

Native build acb20805ccf6731c40e1cb4bafb0976bb3978ac1

Choose a tag to compare

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

Choose a tag to compare

@preciz preciz released this 16 Oct 19:18

Hex package · Documentation

  • 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_index through 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;
    expose Table.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_autoprojection query 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/2 for 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_filter scalar 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 :ngram indexes 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 :zonemap scalar indexes with synchronous and asynchronous
    creation, reusable definitions, and empty-index creation via train: 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_index as a computed projection alias for list-element FTS
    metadata. Rename any existing select: alias using this name.

Source

Native build cb917f97b7878c5350f6da695b8c94e5b3a9f75c

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

@preciz preciz released this 15 Oct 16:24

Hex package · Documentation

  • 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.Error values from Batch.schema/1 on 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
    ArgumentError consistently 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/2 for 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/1 for 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 direct lazy_static dependency.
  • Remove redundant table-name and source-schema normalization, unused formatter
    and package-ignore entries, and obsolete merge_insert advice in write errors.
    Error messages now point to Table.upsert and Table.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 confirmed commit: :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.

Source