CBR does not report estimates in explain for rooted $or queries

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-92475 was the initial implementation of CBR and the subplanner. It was written before we implemented estimates in explain, so the tests only verified that the last enumerated plan was selected (as opposed to the plan with the least cost, as that was the initial implementation of CBR). As such, we never realized that the EstimateMap returned from planWithCostBasedRanking is ignored in the subplanner codepath. This manifests in rooted $or plans never showing estimates, despite them being calculated.

      This ticket represents the work to plumb the estimates through to the plan explainer.

              Assignee:
              Unassigned
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: