Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
ALL
Description
Test:
c = db.c;
|
c.drop();
|
|
|
c.save( {} );
|
c.save( { a:null } );
|
printjson( c.aggregate( { $project:{ z:{ $dayOfMonth:[ '$a' ] } } } ) );
|
Wed Jun 20 12:56:48 [conn12] test.c Assertion failure false src/mongo/db/pipeline/value.cpp 621
|
Observed behavior: A verify assertion occurs when attempting to extract a date field from a missing or null value.
Expected behavior: If an exception is to be triggered in this case it should be a non verify assertion.