[SERVER-64091] Ensure that pushed down $lookup works correctly when the foreign collection does not exist Created: 01/Mar/22  Updated: 29/Oct/23  Resolved: 21/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: Backlog
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Mihai Andrei Assignee: Rui Liu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-64762 Complete TODO listed in SERVER-64091 Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-04-04, QE 2022-03-21
Participants:

 Description   

When the 'from' collection in a $lookup doesn't exist, we should produce an empty array in the 'as' field for each output document. This ticket tracks the work to ensure that this works for each join algorithm implemented in this project.



 Comments   
Comment by Githook User [ 19/Mar/22 ]

Author:

{'name': 'Rui Liu', 'email': 'rui.liu@mongodb.com', 'username': 'lriuui0x0'}

Message: SERVER-64091 Handle non-existent foreign collection in $lookup pushdown
Branch: master
https://github.com/mongodb/mongo/commit/ea6cea686a1668897d38344f6e5eea6cc70de637

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