Repository navigation
feat(nodejs): open source-bearing blob descriptors - #5238
Merged
Merged
Conversation
Add Table.openBlobFile/openBlobFiles for SQL blob_descriptor results. The opener forwards the descriptor to the shared Rust direct-read resolver, so the 10 MiB threshold, snapshot identity, and 503 proxy fallback are the same as fetchBlobFiles. Cover resolver selection, fallback, threshold routing, and null ordering. Update the TypeScript API docs and the Blob range documentation, which already ships fetchBlobRanges.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Use the SQL projection form that actually returns a source-bearing blob descriptor before calling openBlobFile.
Exercise the presigned object GET and 503 proxy fallback with a full threshold-sized read, while keeping the small-range proxy check.
Generate the TypeScript blob_api_ranges snippet from fetchBlobRanges, and show the TypeScript and Rust public descriptor openers in the SQL blob_descriptor guide.
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The TypeScript methods reuse the shared Rust opener, preserving source validation, pinned snapshots, and direct/proxy routing. The iterator preserves order and nulls while opening handles lazily.
The range snippet now matches its tested source, and the descriptor guide includes TypeScript and Rust examples.
BubbleCal
approved these changes
Nov 26, 2026
Xuanwo
added a commit
that referenced
this pull request
Nov 30, 2026
Backport presigned Blob V2 reads for Python and TypeScript, including signed URL reuse, retries, parallel ranged GETs, and the inclusive 32 MiB threshold. Direct reads require the server to advertise support. The backport includes the snapshot identity check on credential refresh that the transport changes build on. Refs #5210, #5216, #5238, #5247, #5248.
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.
Add
Table.openBlobFileandTable.openBlobFilesfor source-bearing SQLblob_descriptorresults, matching the existing Rust and Python APIs.The TypeScript methods forward the descriptor to the shared Rust opener instead of reimplementing routing. That keeps the 10 MiB direct-read threshold, pinned snapshot identity, resolver refresh, and 503 single-shot proxy fallback identical to
fetchBlobFilesand the other public Blob V2 entries. Descriptor fields remain the snake_case shape returned by Arrow/SQL; the wrapper converts unsigned 64-bit values tobigintat the NAPI boundary and returnsnullfor null descriptors. Existing customTablesubclasses keep working through a default "not supported" implementation.Validation:
pnpm tscpnpm lintpnpm test --runInBand __test__/blob_open.test.ts __test__/blob_ranges.test.ts __test__/remote_blob_snapshot.test.ts— 65 passedThe docs also update the TypeScript cross-row range table and example;
fetchBlobRangeswas already implemented but was still documented as unavailable.