Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6143

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

    • ALL

      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 Matt Dannenberg
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: