[SERVER-11455] {$type: Object} operator does not work with dot notation on array elements Created: 29/Oct/13 Updated: 11/Jul/16 Resolved: 21/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.4.5 |
| Fix Version/s: | 2.5.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alvin Richards (Inactive) | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa, nqf, query_triage | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
> db.serverBuildInfo() |
||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
Queries for BSON type Object on array elements specified using the dot notation and the $type operator do not match valid documents in a collection. Example query:
http://docs.mongodb.org/manual/core/document/#document-dot-notation http://docs.mongodb.org/manual/reference/operator/query/type/#op._S_type ---------------- NOTE This appears to be fixed in 2.5.4-Pre Reproduce:
Query 1
2.4.5: 18 docs returned Query 2
2.4.5: Zero docs returned |
| Comments |
| Comment by Thomas Zahn [ 01/Mar/14 ] |
|
Unfortunately, the $type operator still does not seem to work properly with nested (i.e. multi-level) array elements in combination with the dot notation. |
| Comment by Githook User [ 21/Nov/13 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Benety Goh [ 12/Nov/13 ] |
|
breaks down test by testing positional and $type components separately |