[SERVER-23180] array in $lookup localField should not be interpreted literally Created: 16/Mar/16  Updated: 16/Mar/16  Resolved: 16/Mar/16

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-22881 lookup between local (multiple)array... Closed
Operating System: ALL
Participants:

 Description   

In $lookup if the value of localField is an array, we try to use it as a literal array to match foreignField. That seems wrong (or at least not useful). It should instead use the content of the array field as $in in the lookup rather than $eq.



 Comments   
Comment by David Storch [ 16/Mar/16 ]

charlie.swanson asya, yep, resolving as a dup.

Comment by Charlie Swanson [ 16/Mar/16 ]

If I understand this correctly, it's a dup of SERVER-22881?

Generated at Thu Feb 08 04:02:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.