[SERVER-11422] $gte is behaving differently comparing nulls Created: 28/Oct/13 Updated: 10/Dec/14 Resolved: 23/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.5.3 |
| Fix Version/s: | None |
| 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: |
|
||||||||||||||||
| Backwards Compatibility: | Major Change | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
$gte comparing null with number differs For the most part $gte is behaving differently between versions It does seem to be affected by schema, see second case below. Reproduce:
2.4.5: Zero documents returned As the structure changes, the behavior changes
2.4.5: Zero documents returned |
| Comments |
| Comment by Githook User [ 18/Dec/13 ] | |||||||
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: | |||||||
| Comment by Benety Goh [ 23/Nov/13 ] | |||||||
|
test suite expanded to illustrate behavior described in ticket | |||||||
| Comment by Githook User [ 23/Nov/13 ] | |||||||
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: | |||||||
| Comment by Alvin Richards (Inactive) [ 28/Oct/13 ] | |||||||
|
Additional test cases
2.4.5: 2 docs
2.4.5: 2 docs
2.4.5: 2 docs
2.4.5: 2 docs |