[COMPASS-4054] Aggregation builder in Java - $limit takes an integer, not a long Created: 21/Dec/19 Updated: 30/Jun/22 Resolved: 30/Jun/22 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Aggregation pipeline, Export to Language |
| Affects Version/s: | 1.20.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Maxime Beugnet | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
The MongoDB Java sync driver limit stage takes an integer in param and not a long. So below it should be `limit(3)` instead of `limit(3L)`. Else it doesn't compile in Java.
You don't have to take my word for it
|
| Comments |
| Comment by Jessica Sigafoos [ 30/Jun/22 ] |
|
Thanks for your feedback! If you are still seeing this issue in the latest version of the application, please file a new ticket. |