Skip to content

feat: return typed refresh job results - #4013

Merged
Xuanwo merged 4 commits into
mainfrom
xuanwo/typed-refresh-job-result
Aug 24, 2026
Merged

Xuanwo merged 4 commits into
mainfrom
xuanwo/typed-refresh-job-result

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Problem

refresh_column_async returned a unit-result job even though durable refresh jobs carry a canonical terminal result. Python callers could not obtain row counts or source and published versions through the public Job API, and local and remote refresh jobs exposed different result semantics.

Behavior

refresh_column_async now returns Job[RefreshColumnResult] for local and remote tables. The general typed-job bridge binds each endpoint to its public result model while preserving unit-result jobs and existing status, wait, cancel, and timeout behavior. A local no-op refresh reports no published version.

The Node.js API continues to resolve wait() as void; its binding erases the Rust result type internally to preserve the existing public contract.

Ownership and integration boundary

LanceDB owns the language-neutral Job<T> contract and language-binding decode. Sophon owns production and durable persistence of terminal payloads. Sophon #7348 and #7378 now publish the canonical refresh result for Function-backed and expression-backed refresh jobs, respectively. The remote client fixture matches the merged server schema; live deployment and end-to-end demo acceptance remain separate rollout checks.

@github-actions github-actions Bot added enhancement New feature or request Python Python SDK Rust Rust related issues labels Aug 21, 2026
@Xuanwo
Xuanwo marked this pull request as ready for review August 21, 2026 18:50

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

@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 with a non-blocking risk.

The typed Job<T> direction reuses the existing lifecycle, preserves unit-result jobs and Node.js wait() semantics, and gives local and remote refreshes one result model. The remaining risk is that production Sophon emission for both refresh kinds and the compiled Python/Cloud path are not verified end to end here; the client logic is covered by local and durable-payload fixtures. Before operational adoption, validate both refresh kinds through the Python API against deployed Sophon.

Please mark this PR with the breaking-change label.

@lancedb-gatekeeper lancedb-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. K-risk Latest Gatekeeper recommendation includes a non-blocking risk. labels Aug 21, 2026
Comment thread python/python/lancedb/_lancedb.pyi Resolved
…job-result

# Conflicts:
#	python/python/lancedb/_lancedb.pyi
#	python/python/lancedb/db.py
@lancedb-gatekeeper lancedb-gatekeeper Bot removed K-risk Latest Gatekeeper recommendation includes a non-blocking risk. K-approved Latest Gatekeeper recommendation permits acceptance. labels Aug 24, 2026
@Xuanwo
Xuanwo merged commit b0dae5e into main Aug 24, 2026
30 of 31 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/typed-refresh-job-result branch August 24, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants