SERVER-139157Backlog

Fix bounded NDV estimation to use matching samples

The current seek estimator [passes|https://github.com/mongodb/mongo/blob/287f53d383e3750fe35c4d9e0af850625d756917/src/mongo/db/query/compiler/ce/sampling/sampling_estimator_impl.cpp#L909] to Newton-Raphson the sampleNDV satisfying the given bounds but the total sample size as the population count, including those not satisfying the given bounds, confusing the two populations. The sketch of a fix improved plan quality on the plan stability tests and synthetic benchmarks. Came up while I was

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
cbr_ce_accuracy