Details
-
Task
-
Resolution: Won't Fix
-
Trivial - P5
-
None
-
3.4.10, 3.6.0-rc2
-
None
-
Query
Description
The method Value::compare in src/mongo/db/pipeline/value.cpp states :
switch (lType) {
|
// Order of types is the same as in BSONElement::compareElements() to make it easier to
|
// verify.
|
Although it presents the case NumberDecimal before case NumberInt whereas it should be located after case NumberDouble to match src/mongo/bson/bsonelement.cpp.
This does not have any impact but just matches the explicit comment. Or else, just remove the comment if this is not of importance.