Files
lancedb/python/python
Wyatt Alt 2612ecadcb feat: declare computed columns by SQL expression
add_columns().computed("doubled", "x * 2") stores the expression in field
metadata and commits the column empty; a later refresh fills it. Type and
inputs are derived from the expression.

The declaration stays authoritative for its lifetime: writes that would give
the column a value (append, update, merge, SQL insert), schema changes that
would break the stored expression or reshape its output, metadata edits,
volatile expressions, declaration metadata arriving through any path but the
validated declare call, and LSM write specs in either order against latest
committed state are all refused. The LSM check also refuses on the mem-wal
catch-up feature flag, which outlives unset and marks retained SSTable rows.
Simultaneous declare/install interleavings conflict at commit via lance's
mem-wal rule (lance#8539). Local tables only.
2026-08-14 09:19:48 -07:00
..