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

heuristicCE: Double negations result in MONGO_UNIMPLEMENTED_TASSERT

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • ALL
    • QO 2024-12-23

      coll = db.foo;
      coll.drop();
      
      for (let i = 0; i < 1000; i++) {
           coll.insertMany([{a: i,b:1}]);
      }
      
      db.adminCommand({setParameter: 1, planRankerMode: "multiPlanning"});
      db.runCommand({analyze: "foo", key: "a"});
      
      db.adminCommand({setParameter: 1, planRankerMode: "heuristicCE"});
      db.foo.aggregate([{$match:{$nor:[{ b: {$ne: 3}}]}}]).explain();
      MongoServerError[Location9586708]: Hit a MONGO_UNIMPLEMENTED_TASSERT!
      

      `histogramCE` is also affected.

            Assignee:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Reporter:
            philip.stoev@mongodb.com Philip Stoev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: