-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
ALL
-
-
QE 2026-08-03, QE 2026-08-17
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Encountered while developing: https://github.com/10gen/jstestfuzz/pull/1493
Failure: https://spruce.corp.mongodb.com/task/jstestfuzz_self_tests_query_agg_fuzzers_master_aggregation_timeseries_fuzzer_timeseries_patch_3e52e1b48e747e600ee484349898e37fbace487d_6a56559cfdcb610007b5dfaf_26_07_14_15_28_31/test-html-log?execution=0&testName=job0%2F1d7637aa-0c0c-4b64-b0e0-f25c40e862a6.log#L0
`{field: {$gte: MinKey}}` should match every document, no exceptions. On a time-series collection though, that's not what happens: with pipeline optimization enabled the query quietly returns far fewer documents than it should , while with optimization
disabled it correctly returns all results. Regular (non-time-series) collections behave correctly either way.
For
```js
[
{ $match: { "obj.obj.obj.num": { $gte:
} } },
{ $sort:
},
{ $sortByCount: { $arrayToObject: [ [
[ "pish lack", { $ifNull: [ { $max: [ ISODate("0001-01-01T00:00:00Z"),
{ $dateFromParts: { year: NumberLong(6), minute: 10,
millisecond: { $toInt:
} } } ] }, null ] } ],
[ "if yearly how",
]
] ] } }
]
```
- Optimization ON (SBE):
```jsonUnknown macro: { "_id"}```
- Optimization OFF (classic):
```jsonUnknown macro: { "_id"}```