[JAVA-3767] aggregate functions, not do match correctly Created: 17/Jun/20 Updated: 29/Jun/20 Resolved: 29/Jun/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | rodrigo brito | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
with this code bellow: mongoTemplate.getCollection(COLLECTION_NAME).aggregate( Aggregates.match(Filters.eq("cpfCnpj",cpfCnpj))
if has only one cpfCnpj in the collection, it is doing aggregation for 113 items of the collection, the final result is correctly, but with match stage and contain only one of the cpf used, should do only one aggregation.
The driver version is 4.0.3
the data used in the log are fake , so not contain sensitive data
I attached the log event, the first log event is the query used in match stage.
|
| Comments |
| Comment by Esha Bhargava [ 29/Jun/20 ] |
|
Hi there, thank you for reaching out. As this sounds like a support issue, I wanted to give you some resources to get this questioned answered more quickly:
|