Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
Observed behavior: see test below
Expected behavior: tbd (either honor all inclusion specifications or assert consistently)
c = db.c;
|
c.drop();
|
|
|
c.save( { a:'foo', b:{ c:'bar' } } );
|
|
|
// Only the b:a inclusion is applied.
|
printjson( c.aggregate( { $project:{ b:{ a:1 }, 'b.c':1 } } ) );
|
// Reversing the $project fields triggers an assertion.
|
printjson( c.aggregate( { $project:{ 'b.c':1, b:{ a:1 } } } ) );
|
Attachments
Issue Links
- is related to
-
SERVER-6206 need a policy for incompatible types in operators in aggregation expressions
-
- Closed
-