sql: allow expression indexes to reference computed columns #67900
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
docs-done
docs-known-limitation
E-quick-win
Likely to be a quick win for someone experienced.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
Currently we do not allow expression indexes to reference computed columns. This restriction comes from the restriction that computed column cannot reference other computed columns, presumably to prevent cycles. Because expression indexes are backed by inaccessible virtual computed columns, which cannot be referenced by any other schema expressions, we may be able to lift this restriction for expression indexes.
More context from #65703 (review):
rytaft:
mgartner:
Jira issue: CRDB-8766
The text was updated successfully, but these errors were encountered: