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
sql/opt: implement canary full statistics rollout with configurable window
This commit implements the core logic for canary statistics rollout,
allowing gradual deployment of newly collected full statistics.
Previously, all queries would immediately use the most recent full
statistics, which could cause performance regressions if the new full
statistics were inaccurate.
The implementation adds a `CanaryWindowSize` field in table descriptors
and catalog interfaces to define the canary period, along with logic in
the statistics builder to skip "canary" statistics (the latest stats
within the canary window) when not using the canary path. The cluster
setting `sql.stats.canary_fraction` controls what percentage of queries
use canary statistics.
Release note (sql change): implement canary full statistics rollout core logic, which
is configurable via the table-level storage paramter
(`canary_window`) and the cluster setting
`sql.stats.canary_fraction`.
0 commit comments