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
155035: sql/stats: handle range counts when skipping dropped enum hist buckets r=Uzair5162,yuzefovich a=michae2
**opt/props: only check histogram NumRange=0 in test builds**
These assertions that the first histogram bucket has NumRange=0 are
useful for catching bugs, but a liability in production
environments. Even with malformed histograms, we should not be failing
query execution. Only check these assertions in test builds.
Informs: #154461
Release note (bug fix): Change assertions about histogram NumRange=0 to
only be checked in test builds.
---
**sql/stats: handle range counts when skipping dropped enum hist buckets**
In #136538 we changed DecodeHistogramBuckets to skip over histogram
buckets for dropped enum values. This change assumed that histogram
buckets for enum types would never contain range counts, but this is not
true. For example, if the number of distinct enum values exceeds the
number of histogram buckets there could be range counts.
Fixes: #154461
Release note (bug fix): Fix a bug in which range counts in table
statistics histograms were not handled correctly after a user-defined
enum type was modified.
155274: logical: add initial/catchup scan metrics to offline scan r=msbutler a=kev-cao
This patch teaches the LDR offline scan processor to emit checkpoint range stats and update the `logical_replication.scanning_ranges` and `logical_replication.catchup_ranges` metrics.
Informs: #152273
Release note: LDR now updates the `logical_replication.scanning_ranges` and `logical_replication.catchup_ranges` metrics during fast initial scan.
155492: physical: deflake TestCreateTenantFromReplicationUsingID r=msbutler a=kev-cao
We occasionally see slow quiesces on the
`TestCreateTenantFromReplicationUsingID` test. This appears to be caused by shutting down the server while the source tenant is still being created. To avoid this, we wait until the SQL server on the source tenant is ready before teardown.
Fixes: #155345
Release note: None
Co-authored-by: Michael Erickson <michae2@cockroachlabs.com>
Co-authored-by: Kevin Cao <39608887+kev-cao@users.noreply.github.com>
0 commit comments