Skip to content

feat(python): let lancedb.blob() set blob tier thresholds #4285

Closed

Description

@Xuanwo

Description

lancedb.blob(name, nullable) (Python) and lancedb::blob (Rust) can't set the per-column blob tier thresholds: the inline size threshold, the dedicated size threshold and the pack file size threshold. Lance's lance.blob_field(...) exposes them, and the TypeScript blob() already accepts inlineSizeThreshold / dedicatedSizeThreshold / packFileSizeThreshold.

Today Python users have to use lance.blob_field or write the lance-encoding:blob-*-threshold field metadata by hand. Hand-written metadata isn't validated when the schema is created, so a typo breaks every later write (lance-format/lance#9529).

The thresholds themselves work through lancedb once set: create_table(schema=...) and create_table(data=...) preserve them, add, merge_insert and compaction respect them, and update_field_metadata can change them (compaction then re-tiers existing blobs).

Suggested API:

lancedb.blob("payload", inline_size_threshold=8 * 1024, dedicated_size_threshold=1 << 20)

forwarding to lance.blob_field and the Rust equivalent, for parity with TypeScript.

Found during the Blob V2 bug bash (2026-09-23).

Activity

  1. added
    enhancement
    Python
    on Sep 23, 2026
  2. SIDDARTHAREDDY8 commented on Sep 25, 2026

    @SIDDARTHAREDDY8
    Contributor

    I can reproduce the gap (Python lancedb.blob() has no threshold params while TS does). I will open a PR threading the three thresholds through to lance.blob_field (and the Rust equivalent).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pythonenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions