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
151737: sql: add support for automatically repairing dangling comments r=fqazi a=fqazi
Previously, we added logic to detect dangling comments on descriptors but did not include a mechanism to clean them up. This could block initial upgrades due to dangling entries in the system.comments table. This patch adds support for automatically cleaning up these dangling comments.
Fixes: #151497
Release note (bug fix): Added an automatic repair for dangling or invalid entries in the system.comment table.
151880: server: Filter high contention insights in ListExecutionInsights r=alyshanjahani-crl a=alyshanjahani-crl
Previously high contention insights included in the ListExecutionInsights response often did not have their respective contention events available in the contention events registry. This led to confusion when viewing an insight execution overview page since the table displaying the contention events for the execution would often be empty.
This commit fixes this behaviour by ensuring that any high contention insights are only included in the ListExecutionInsights response if they have at least one valid contention event available in the contention event registry.
A contention event is valid if the blocking transaction fingerprint ID (i.e. the column of most interest in the UI table) is resolved.
Fixes: https://cockroachlabs.atlassian.net/browse/CRDB-53271
Release note: None
151951: sql: fix `BETWEEN SYMMETRIC` normalization to use matching typed lefts r=Uzair5162 a=Uzair5162
We normalize symmetric `RangeCond` expressions (`<left> BETWEEN SYMMETRIC <from> AND <to>`) by expanding them into 2 pairs of `ComparisonExpr`, covering both orderings of the BETWEEN bounds. When the type-checks for the left/from and left/to comparisons chose different coercions, the symmetric half could pair `leftFrom` with `to` (and `leftTo` with `from`) during normalization. This resulted in mixed-type comparisons on type-checked expressions and caused panics in some paths (e.g. AOST normalization).
This change ensures that the type-checked pairings are kept aligned when constructing `ComparisonExpr` in the symmetric case.
Fixes: #133395
Release note (bug fix): Previously, executing certain statements with `BETWEEN SYMMETRIC` expressions could panic if used with values of different types, such as `... b'bytes' BETWEEN SYMMETRIC 'a' AND 'c'`, which is now fixed.
152033: sql/stats: ignore partial stats in `crdb_internal.table_row_statistics` r=Uzair5162 a=Uzair5162
Previously, the `crdb_internal.table_row_statistics` virtual table was being populated with the row count from the most recent table statistic. This caused incorrect row counts to be shown for `SHOW TABLES` when the most recent statistic was a partial collection. This change ignores partial stats when populating `crdb_internal.table_row_statistics` to fix this issue.
Fixes: #152024
Release note (bug fix): Previously, `SHOW TABLES` would show inaccurate row counts if the most recent statistic collection was partial, which is now fixed.
Co-authored-by: Faizan Qazi <[email protected]>
Co-authored-by: Alyshan Jahani <[email protected]>
Co-authored-by: Uzair Ahmad <[email protected]>
0 commit comments