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

Implement date overflow check in SBE

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Query Execution 2021-05-03

      Code below is a simplified repro from this fuzzer failure.

      It gives PlanExecutor error during aggregation :: caused by :: date overflow in $add error when executed with classic engine and object with invalid date ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ") when executed with SBE.

      (function() {
      
      db.test.drop();
      db.test.insertOne({num: NaN});
      
      const results = db.test.aggregate([
          {
              "$project" : {
                  "a" : {
                      "$add" : [
                          ISODate("2019-12-29T03:22:55.159Z"),
                          "$num"
                      ]
                  }
              }
          }
      ]).toArray();
      print(tojson(results));
      
      }());
      

            Assignee:
            nikita.lapkov@mongodb.com Nikita Lapkov (Inactive)
            Reporter:
            nikita.lapkov@mongodb.com Nikita Lapkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: