SERVER-83322ClosedFixed

Compound Wildcard Index bounds reverts to [MinKey, MaxKey] when filter contains fields outside CWI

I'm observing a weird behaviour with CWI's, where queries containing filters beyond those covered by the CWI, results in the `indexBounds` to revert to '[MinKey, MaxKey]`. Say I have CWI: If I query only using fields contained in the CWI: I get this winning query plan: But if I add an extra criteria, say `{ Foo: 'Bar' }`: I suddenly get a query plan where the index bounds on `CustomFields.Prop` and `Date` are both `[MinKey, MaxKey]`: {code:js} { "stage": "FETCH", "

Affected Versions
Versions known to exhibit this issue
7.0.18.0.0-rc0
Fixed Versions
Versions that include the fix
9.0.0-rc08.2.138.3.78.0.39
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkpquery-product-value-1quick-win