[CSHARP-1627] Join operation not working mongo c# driver linq Created: 17/Apr/16 Updated: 19/Apr/16 Resolved: 19/Apr/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Khushal Patel | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
.net 4.5, |
||
| Issue Links: |
|
||||||||
| Description |
|
When I try to perform join operation I am getting joint document collection count as zero. It happens when we link (objectId) _id fields both the side, its works when you link up some other datatype likes strings, it could be bug in the driver which is not accepting objectId. |
| Comments |
| Comment by Craig Wilson [ 19/Apr/16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Khushal, My apologies. I was testing against our master branch. We have fixed a bug that will be released with 2.2.4. There isn't an issue with ObjectIds. There is an issue with the foreign field name not being set properly as you noted above. This turns out to be a duplicate of I'm going to close this ticket as a duplicate. Feel free to re-open if you believe something more to be going on here. We'll be releasing 2.2.4 in the next week or two. Craig | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Khushal Patel [ 19/Apr/16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Craig, the issue is its not failed the build or raise an exception but it wont bring the data i tried your code also but its not working Here are some points }])" which seems weird because ForeignField should be mapped to "_id" as per my understanding, please correct me if i am wrong . 3) When loop through "query" object and trying to get the count of "j" always gives zero.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Craig Wilson [ 18/Apr/16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Khushal, I've tried to replicate this both in an automated test as well as a console application and cannot get it to fail. Below is the program I'm using. If you still believe this to be a bug, could you provide a Program.cs that replicates the issue and attach it?
Craig |