Skip to content

Update from code changes: document declared computed columns - #330

Open
mintlify[bot] wants to merge 4 commits into
mainfrom
mintlify/3545fa13
Open

Update from code changes: document declared computed columns#330
mintlify[bot] wants to merge 4 commits into
mainfrom
mintlify/3545fa13

Conversation

@mintlify

@mintlify mintlify Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

add_columns now accepts a SQL expression declaration that commits the column empty and is filled by a later refresh_column call (blocking) or refresh_column_async (returns a job handle) across Python, TypeScript, and Rust. Computed columns work on both local tables and LanceDB Enterprise, with the refresh on Enterprise running as a server-side backfill job that must be submitted through the async form. The docs page for schema evolution gains "Declare computed columns" and "Refresh a computed column" subsections covering the APIs, when to use them, the local vs. Enterprise behavior, and the write and schema-change restrictions the declaration imposes.

Changes

  • Added a "Declare computed columns" subsection under "Add new columns" in docs/tables/schema.mdx with Python, TypeScript, and Rust examples and callouts for local vs. Enterprise behavior and the transform-vs-computed restriction.
  • Added a "Refresh a computed column" subsection covering refresh_column / refreshColumn, the returned row count and version, idempotency, and the LSM and Enterprise refusals for the blocking form.
  • Added a "Run the refresh in the background" subsection covering refresh_column_async / refreshColumnAsync, the returned job handle, the fact that invalid input is reported by the submitting call rather than by the job, and the read-freshness baseline the successful wait establishes on Enterprise.

Update history

@mintlify

mintlify Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lancedb-bcbb4faf 🟢 Ready View Preview Aug 14, 2026, 9:22 PM

@mintlify

mintlify Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Update from code changes updated this PR.

Added refresh_column subsection for filling declared computed columns

Source PRs

@mintlify

mintlify Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Update from code changes updated this PR.

Added background refresh subsection for refresh_column_async job handle

Source PRs

@mintlify

mintlify Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Update from code changes updated this PR.

Added Enterprise support notes for computed columns and remote refresh behavior

Source PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants