feat(java): add allowExternalBlobOutsideBases to WriteParams#6330
Open
beinan wants to merge 1 commit intolance-format:mainfrom
Open
feat(java): add allowExternalBlobOutsideBases to WriteParams#6330beinan wants to merge 1 commit intolance-format:mainfrom
beinan wants to merge 1 commit intolance-format:mainfrom
Conversation
Add support for writing blob v2 columns with external URI references that are outside registered base paths. This enables use cases like INSERT INTO SELECT across Lance tables where the target table stores external blob references pointing to the source table's blob files. Changes: - WriteParams: add allowExternalBlobOutsideBases field + builder method - Fragment JNI: thread the new parameter through createWithFfiArray, createWithFfiStream, and create_fragment to Rust WriteParams - extract_write_params: parse the new Optional<Boolean> and set allow_external_blob_outside_bases on Rust WriteParams Ref: lance-format#6321 Ref: lance-format#6322 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jackye1995
approved these changes
Apr 1, 2026
Contributor
jackye1995
left a comment
There was a problem hiding this comment.
looks good, pending CI fixes
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
Add support for writing blob v2 columns with external URI references that are outside registered base paths. This enables use cases like INSERT INTO SELECT across Lance tables where the target table stores external blob references pointing to the source table's blob files instead of copying the actual blob bytes.
Changes
allowExternalBlobOutsideBasesOptional field, getter, and builder methodcreateWithFfiArrayandcreateWithFfiStreamnative methodsOptional<Boolean>parameter through all fragment creation functions toextract_write_paramsallow_external_blob_outside_baseson RustWriteParamsJObject::null()for the new param inDataset.write()path (not needed there)Context
This is a prerequisite for lance-spark blob JOIN support (lance-format/lance-spark#355). When blob data flows through Spark's shuffle during JOIN + INSERT INTO, the target table needs to write external blob references pointing to the source table's physical blob files. The Rust
BlobPreprocessoralready supports this viaallow_external_blob_outside_bases, but the Java SDK had no way to set it.Ref: #6321, #6322
Test plan
🤖 Generated with Claude Code