#4285·lancedb

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

Author: XuanwoCreated Sep 23, 2026Updated Sep 25, 2026
LabelsenhancementPython

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:

python
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).