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
cardinality: assert TestCanSkipIndexEstimation actually exercises the fast path
The previous test set the index to FullLoad, which made
IndexStatsIsInvalid a no-op for the async-load queue — so the test
would pass even if canSkipIndexEstimation were removed or if the
fast-path reorder were reverted.
Switch the mock index to NewStatsAllEvictedStatus so IndexStatsIsInvalid
would queue it for async load if it were ever reached, and assert that
AsyncLoadHistogramNeededItems does not contain the index after the
full-range call. This now fails if the fast path moves back below
IndexStatsIsInvalid. Switch sctx to the testkit's real session via
GetPlanCtx() since recordUsedItemStatsStatus needs a domain to resolve
the table when the stats are not FullLoad.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments