[JAVA-3367] $oid does not work with min() Created: 30/Jul/19 Updated: 11/Sep/19 Resolved: 05/Aug/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | 3.8.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Satyaprakash Reddy | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
These two queries return a different result (executed in the mongo shell): 1. This one doesn't consider _id at all. Hence returns incorrect results.
2. This one returns proper results.
We're using below piece of code to generate .min() part of above query:
Any changes I can make to fix my code to generate _id as 'new ObjectId("<>")' in the resulting query? We're currently blocked on this. Please help. |
| Comments |
| Comment by Satyaprakash Reddy [ 30/Jul/19 ] |
|
Please close this ticket. It was an issue at my end. Sorry for the trouble. |