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

QueryPlannerTest::assertSolutionExists should fail when solution has filter and test doesn't

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Currently when the test plan does not include a filter in a given stage, it is considered OK, but it should only be so if the solution has no filter, otherwise it is masking potential bugs.

      e.g: if the generated plan is

       

      IXSCAN
          FILTER: alwaysFalse: true
          PATTERN: {a: 1}

      And the expected plan is

      IXSCAN
          PATTERN: {a: 1} 

      The test would succeed but the results would be completely different

       

       

            Assignee:
            c.alonso@mongodb.com Carlos Alonso Pérez
            Reporter:
            c.alonso@mongodb.com Carlos Alonso Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: