[CSHARP-1573] $Lookup uses the localField as the value for foreignField Created: 18/Feb/16  Updated: 18/May/16  Resolved: 11/Mar/16

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 2.0
Fix Version/s: 2.2.4

Type: Bug Priority: Major - P3
Reporter: Jacob Jewell Assignee: Craig Wilson
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CSHARP-1627 Join operation not working mongo c# d... Closed

 Description   

When running an aggregation containing a $lookup stage the value for localField is filled in with the value of foreignField.

Pull Request with a fix at https://github.com/mongodb/mongo-csharp-driver/pull/234



 Comments   
Comment by Githook User [ 11/Mar/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1573: fixed issue with joins and group joins using an incorrect field for the foreign field.
Branch: v2.2.x
https://github.com/mongodb/mongo-csharp-driver/commit/54317086bf6d4b50f69c4845d17f08966253ac8a

Comment by Githook User [ 11/Mar/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1573: fixed issue with joins and group joins using an incorrect field for the foreign field.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/98a18249b9d68ae408d09e2e9d75edfaeff0a644

Comment by Craig Wilson [ 18/Feb/16 ]

Well, that's a total fail on my part. Must not have tested with different keys for local and foreign. Thanks for the find and PR. We'll get this merged soon.

Comment by Jacob Jewell [ 18/Feb/16 ]

I just realized I had a typo above. It should be "the value for foreignField is filled in with the value of localField".

Generated at Wed Feb 07 21:40:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.