Add configurable V1 blob encoding for large payload columns#49
Merged
Conversation
added 4 commits
June 6, 2026 21:37
Enable Lance V1 blob encoding via `blob_columns` option in ContextStoreOptions. Supports `text_payload` and `binary_payload` columns. Blob-encoded columns store data in out-of-line buffers for efficient storage of large/unpredictable content. Co-Authored-By: Beinan Wang <beinanwang@microsoft.com>
Co-Authored-By: Beinan Wang <beinanwang@microsoft.com>
Co-Authored-By: Beinan Wang <beinanwang@microsoft.com>
Co-Authored-By: Beinan Wang <beinanwang@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
blob_columns: HashSet<String>toContextStoreOptionsto let users opt columns into Lance V1 blob encodingtext_payloadandbinary_payload— blob-encoded columns store data in out-of-line buffers for efficient storage of large/unpredictable contentbatch_to_records()auto-detects column types from the batch schema, preserving backward compatibility with existing non-blob datasetsblob_columnsparameter onContext.create()Usage
Test plan
test_blob_binary_payload— roundtrip with blob-encoded binary_payloadtest_blob_text_payload— roundtrip with blob-encoded text_payload (LargeUtf8 → LargeBinary)test_blob_both_columns— both columns blob-encoded simultaneouslytest_no_blob_default— default (no blob) schema unchangedtest_blob_schema_metadata— verifieslance-encoding:blobmetadata on fieldstest_blob_invalid_column_name— rejects unknown column namestest_batch_to_records_autodetects_text_type— auto-detection works for both LargeUtf8 and LargeBinary batchescargo test -p lance-context-core)cargo check -p lance-context-python)🤖 Generated with Claude Code