sql: mitigate impact of corrupted back-references in type descriptor #84322
Labels
A-schema-changer-impl
Related to the implementation of the new schema changer
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
In #84144 we have one such instance:
ALTER TABLE ... SET LOCALITY REGIONAL BY ROW
forgot to add a back-reference to the table in the type, and a subsequentDROP REGION
succeeds, with dire consequences to the table.This issue tracks adding more validation checks to
DROP REGION
to correctly trigger an error on clusters whose type descriptors are already corrupted.Preliminary work for #63161 revealed another potential instance of this class of error when altering a column's type from one enum type to another. This issue also tracks doing the same for those in 22.1 and perhaps 21.2 also.
This is all assuming that 22.2 will be unaffected because #63161 will be completed in time for the release.
Jira issue: CRDB-17586
Epic CRDB-31164
The text was updated successfully, but these errors were encountered: