-
Notifications
You must be signed in to change notification settings - Fork 4.1k
SHOW CREATE for materialized views returns incorrect DDL #80829
Copy link
Copy link
Closed
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.E-easyEasy issue to tackle, requires little or no CockroachDB experienceEasy issue to tackle, requires little or no CockroachDB experienceO-communityOriginated from the communityOriginated from the communityT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)good first issue
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.E-easyEasy issue to tackle, requires little or no CockroachDB experienceEasy issue to tackle, requires little or no CockroachDB experienceO-communityOriginated from the communityOriginated from the communityT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)good first issue
Describe the problem
When trying to use
SHOW CREATEon a materialized view, the generated DDL is no longer a materialized view but a normal view, and the internal rowid column is part of the column definition.To Reproduce
SHOW CREATE:Expected behavior
I would expect the DDL to create a materialized view without a rowid.
Additional data / screenshots

Environment:
Jira issue: CRDB-15494