-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
An inclusion $project that computes b.x and includes b.y turns {b: [1]} into {b: [{x: 1}]}, which matches {"b.y": null}. But [$project, $match {"b.y": null}] returns no documents: the $match is moved ahead of the $project, where b is still [1] and does not match. Putting the $match behind a $facet returns the document.
Related
- SERVER-139258 (Needs Scheduling): names the same semantic gap; no wrong result reported.
- SERVER-134187 (In Code Review): arrayness of a dotted path after an inclusion projection with a computed field is reported wrong; its fix may cover this.
Found with Ephyra, a property-based testing tool I'm developing; this report was drafted with an LLM from the test output, and I reviewed it and reran the repro on 9.0.8 and master.
- is related to
-
SERVER-134187 Arrayness of dotted path after inclusion projection is incorrect
-
- In Code Review
-
-
SERVER-36681 Dotted path {$ne: null} against array of scalars returns incorrect results
-
- Closed
-
-
SERVER-131449 Dependency graph loses nested path arrayness after later $project of collection field
-
- Closed
-
- related to
-
SERVER-139258 Infer prefix types according to dotted-path transformation semantics
-
- In Code Review
-