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

Deduplicate getWinningPlan js test explain helpers

    • Query Optimization

      This ticket aims to clean-up the test helpers in analyze_plan.js

      At the creation of this ticket there are four helpers getting the `winningPlan` from the explain output of a query.

      specifically,

      getWinningPlan: gets the winning plan from the queryPlanner sub-object of an explain output.

      getWinningSBEPlan: gets the winning plan from the queryPlanner sub-object of an explain output of an SBE query plan.

      getWinningPlanFromExplain: gets the winning plan from the explain output of an SBE query plan.

      getWinningSBEPlanFromExplain: gets the winning plan from the explain output of an SBE query plan.

      This ticket aims to de-duplicate these implementation and converge to using only one.

      The goal is to use one general implementation which will subsume all others, and update all uses if these functions throughout the tests.

        1.
        Remove getWinningSBEPlan and getWinningSBEPlanFromExplain SERVER-95517 Sub-task Closed Matt Olma 8.1.0-rc0
        2.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests/noPassthrough* SERVER-95550 Sub-task Closed Matt Olma 8.1.0-rc0
        3.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests in query/api, query/distinct, and query/explain SERVER-95551 Sub-task Closed Matt Olma 8.1.0-rc0
        4.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests in core/query/ SERVER-95552 Sub-task Closed Matt Olma 8.1.0-rc0
        5.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests core/query/or, core/query/plan_cache, cpre/query/sbe, core/timeseries, libs SERVER-95553 Sub-task Closed Matt Olma 8.1.0-rc0
        6.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests aggregation/*, sharding/*, disk/*, /core/clustered/* SERVER-95554 Sub-task Closed Matt Olma 8.1.0-rc0
        7.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests index/covered/, index/fts/ SERVER-95555 Sub-task Closed Matt Olma 8.1.0-rc0
        8.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests core/index/wildcard/ SERVER-95556 Sub-task Closed Matt Olma 8.1.0-rc0
        9.
        Change the use of getWinningPlan to getWinningPlanFromExplain for jstests core/index/* SERVER-95557 Sub-task Closed Matt Olma 8.1.0-rc0
        10.
        Change the use of getWinningPlan to getWinningPlanFromExplain for remaining jstests in jstests/core SERVER-96682 Sub-task Closed Matt Olma 8.1.0-rc0
        11.
        Change the use of getWinningPlan to getWinningPlanFromExplain for remaining tests SERVER-96688 Sub-task Closed Matt Olma 8.1.0-rc0
        12.
        Change the use of getWinningPlan to getWinningPlanFromExplain for tests using $cursor SERVER-96687 Sub-task Closed Matt Olma 8.1.0-rc0
        13.
        Remove getWinningPlan SERVER-95558 Sub-task Closed Matt Olma 8.1.0-rc0
        14.
        Alter implementation of getWinningPlanFromExplain SERVER-96754 Sub-task In Progress Matt Olma  

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: