heuristicCE: Double negations result in MONGO_UNIMPLEMENTED_TASSERT

XMLWordPrintableJSON

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

      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
            Reporter:
            Philip Stoev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: