cockroachdb / cockroachdb/cockroach

sql,schema: different view schemas for different crdb versions

Open
#95,787 4 comments 0 reactions 0 assignees View on GitHub
C-enhancement T-sql-foundations
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Is your feature request related to a problem? Please describe.**
[This view used by sql-obs sql stats pages](https://github.com/cockroachdb/cockroach/blob/3ffbaeaf47726e86665ffcefd2b059e75bee0a19/pkg/sql/crdb_internal.go) merges a vtable with a system table. In 22-2, a new column was added to the system table, but we are unable to version gate the column for mixed version clusters.

**Describe the solution you'd like**
The ability to have different versions of views based on the active version.

**Describe alternatives you've considered**
n/a

**Additional context**
n/a

Jira issue: CRDB-23741

Epic CRDB-30352

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.