Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: adds unique constraint checks to SCRUB
The SCRUB tool validates table constraints. Before this change, it could only validate `CHECK` and foreign key constraints. This PR enhances SCRUB to also validate tables that contain `PRIMARY KEY`, `UNIQUE`, or the experimental `UNIQUE WITHOUT INDEX` keywords. Fixes: #73632 Release note (sql change): This PR expands the capabilities of the experimental SCRUB tool to include checking unique constraints for primary keys, unique indexes, and unique columns without indexes. The usage and output of SCRUB is unchanged, but if there is a unique constraint violation, users will see the error message `unique_constraint_violation` for all rows that violate the constraint, along with information about the row.
- Loading branch information