Repository navigation
feat: return typed refresh job results - #4013
Conversation
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.
There was a problem hiding this comment.
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.
…job-result # Conflicts: # python/python/lancedb/_lancedb.pyi # python/python/lancedb/db.py
Problem
refresh_column_asyncreturned 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 publicJobAPI, and local and remote refresh jobs exposed different result semantics.Behavior
refresh_column_asyncnow returnsJob[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()asvoid; 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.