[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: PNG File image-2019-12-21-02-00-19-518.png    

 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  !

https://mongodb.github.io/mongo-java-driver/3.12/javadoc/com/mongodb/client/model/Aggregates.html#limit(int)

 



 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.

Generated at Wed Feb 07 22:35:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.