[SERVER-60755] We don't add documents to the graphLookup cache if the matched field is missing Created: 15/Oct/21  Updated: 29/Oct/23  Resolved: 21/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.1.0-rc2

Type: Bug Priority: Major - P3
Reporter: Ted Tuckman Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Initiative
included in Initiative SERVER-45185 $graphLookup's internal cache handles... Closed
Problem/Incident
Related
is related to SERVER-45185 $graphLookup's internal cache handles... Closed
is related to SERVER-61034 Don't always add extra match stage to... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Backport Requested:
v5.1, v5.0
Participants:
Linked BF Score: 200

 Description   

See linked BF for example/details.

This callback function is responsible for adding seen documents to the cache, but the helper doesn't execute the callback if the value is missing.



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-60755 Distinguish between null, missing, and undefined in $graphLookup

(cherry-picked from commit 4f5e64a4f2fbac9b12a24b26dddb6b772fd21e37)
Branch: v5.1
https://github.com/mongodb/mongo/commit/e4bd968a126a9b5b4a8a5dc847706b1c33965fe3

Comment by Ted Tuckman [ 21/Oct/21 ]

This changes the results of the first document returned for a $graphLookup if matching on null/missing/undefined.

Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-60755 Distinguish between null, missing, and undefined in $graphLookup
Branch: master
https://github.com/mongodb/mongo/commit/4f5e64a4f2fbac9b12a24b26dddb6b772fd21e37

Generated at Thu Feb 08 05:50:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.