PQS passthroughs should use queryPlanner verbosity

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-03-17, QE 2025-03-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some PQS passthrough test suites execute explain commands.
      For example: https://github.com/mongodb/mongo/blob/0a68308f0d39a928ed551f285ba72ca560c38576/jstests/libs/override_methods/implicit_query_settings_fallback.js#L36

      By default raw explain command have the highest verbosity "allPlansExecution".

      However, tests only check basic plans that are returned when using lowest "queryPlanner" verbosity.

      We should add verbosity parameter to getExplainCommand and use it to save some resources and also reduce side-effects of these passthroughs, potentially enabling more tests.

            Assignee:
            Denis Grebennicov
            Reporter:
            Ivan Fefer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: