Skip to content

feat(nodejs): open source-bearing blob descriptors - #5238

Merged
Xuanwo merged 5 commits into
mainfrom
xuanwo/ent477-sdk-parity
Nov 26, 2026
Merged

Xuanwo merged 5 commits into
mainfrom
xuanwo/ent477-sdk-parity

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 26, 2026

Copy link
Copy Markdown
Member

Add Table.openBlobFile and Table.openBlobFiles for source-bearing SQL blob_descriptor results, 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 fetchBlobFiles and the other public Blob V2 entries. Descriptor fields remain the snake_case shape returned by Arrow/SQL; the wrapper converts unsigned 64-bit values to bigint at the NAPI boundary and returns null for null descriptors. Existing custom Table subclasses keep working through a default "not supported" implementation.

Validation:

  • pnpm tsc
  • pnpm lint
  • pnpm test --runInBand __test__/blob_open.test.ts __test__/blob_ranges.test.ts __test__/remote_blob_snapshot.test.ts — 65 passed
  • focused Rust core tests for direct opens, threshold routing, snapshot preservation, and 503 fallback — passed

The docs also update the TypeScript cross-row range table and example; fetchBlobRanges was already implemented but was still documented as unavailable.

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.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 26, 2026
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.
lancedb-gatekeeper[bot]

This comment was marked as outdated.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 26, 2026
Generate the TypeScript blob_api_ranges snippet from fetchBlobRanges, and show the TypeScript and Rust public descriptor openers in the SQL blob_descriptor guide.
@lancedb-gatekeeper lancedb-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 26, 2026

@lancedb-gatekeeper lancedb-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 26, 2026
@Xuanwo
Xuanwo merged commit 1c01180 into main Nov 26, 2026
19 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/ent477-sdk-parity branch November 26, 2026 16:16
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants