SERVER-136629Open

$expr comparison with null pushed into a sort-providing full index scan drops documents where the field is missing

_Found by an AI bug hunt and confirmed by a differential oracle: results differ with {{internalQueryPlannerPushdownFilterToIxscanForSort}} on and off, while the classic and SBE engines agree with each other._ h2. Problem A {{$expr}} filter that compares a field with {{null}} using {{$lt}}, on a field that is not the leading field of an index that provides the sort, is pushed into a full index scan. In aggregation expressions a missing field sorts below null, so the comparison is true for docume

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
ca-assessmentfound-by-ai-hunterqo-triage-week