[JAVA-2429] DBCollection.distinct() fails when a null value is in the result Created: 20/Jan/17 Updated: 24/Jan/17 Resolved: 24/Jan/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | 3.4.0 |
| Fix Version/s: | 3.4.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jan S. | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When I execute the command db.getCollection("collname").distinct("fieldname"); on a collection that contains a document like
|
| Comments |
| Comment by Jeffrey Yemin [ 24/Jan/17 ] |
|
master: commit 8cfd49e4a83866b9b5f01eaf02256057a2e89c26 |
| Comment by Jeffrey Yemin [ 24/Jan/17 ] |
|
3.4.x: commit 3b2868465e856681d0096ee3e0d9cc4bd5ac2ccb |
| Comment by Ross Lawley [ 20/Jan/17 ] |
|
Thanks the ticket mango and the test data to reproduce the issue. We'll look into fixing in the next release, in the meantime a work around would be to use the aggregation framework. |