[SERVER-84702] $project fails to exclude duplicated keys Created: 09/Jan/24 Updated: 29/Jan/24 |
|
| Status: | Investigating |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Evan Darke | Assignee: | Edwin Zhou |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
When inserting a RawBsonDocument that includes duplicated keys, and attempting to exclude said key in a `$project` stage, only the first occurrence of the key is excluded. This appears to be a probable bug.
Tested in the Java driver because the shell doesn't support duplicate keys:
Results in the output:
Or the logically equivalent shell syntax:
Tested in version: 7.2.0-rc1 Tested with non-covered $project
|