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
stats: harden bucket adjustment for over-estimates
We recently saw a case where we produced histogram buckets that
contained NaNs. This happened because we had an over-estimate of the
distinct count which was impossible to satisfy (3+ distinct count for
boolean column). This commit hardens the bucket adjustment code to avoid
generating NaNs in such scenarios. In particular, it audits all
division arithmetic we do when building histograms to ensure that we
never attempt to divide by zero - I found only one spot where it seems
plausible in such "impossible to satisfy" request.
Release note: None
0 commit comments