verify assertion on attempt to perform date extraction from missing or null value

XMLWordPrintableJSON

    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Matt Dannenberg (Inactive)
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: