You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
150918: sql/inspect: run INSPECT against a single index r=spilchen a=spilchen
Previously, the INSPECT command was a no-op that performed no actual checking. This change implements the first consistency check for INSPECT: index consistency checking, currently supporting a single index at a time.
The consistency checking uses a full outer join between the primary index and secondary index access paths to identify rows that exist in one index but not the other, detecting potential corruption or inconsistency issues.
This new functionality is integrated into the INSPECT job and triggered through SCRUB when the enable_scrub_job setting is enabled. Future work will expose this through direct INSPECT SQL commands.
Note for reviewers:
- Several tests currently generate internal errors in the SQL query engine. These are not logged as issues for now and will be resolved in subsequent work.
Release note: None
Informs #148299
Epic: CRDB-30356
152910: sql/sem/tree: fix width handling for BIT column default values r=spilchen a=spilchen
Previously, when a column was being added or dropped and had NOT NULL with no default value, the parseComputedExpr logic would generate a placeholder value to avoid NULL violations (see #46285 for historical context). For columns of type BIT(n), this fallback value was incorrectly set as BIT(0), which has a width mismatch and caused errors during row insertions or deletions.
This change ensures that the fallback value matches the column's specified BIT(n) width, allowing operations to proceed without errors during schema changes involving such columns.
Fixes#152326Fixes#149567Fixes#151451
Release note (bug fix): Fixed a bug where INSERTs could fail with a type checking error while adding a BIT(n) column.
Epic: None
Co-authored-by: Matt Spilchen <[email protected]>
0 commit comments