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

Make SamplingEstimator an interface

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2024-11-25, QO 2024-12-09

      When integrating sampling estimation into CBR, we ran into a dependency cycle: query_exec -> query_planner -> cardinality_estimator -> sampling_estimator -> query_exec. SamplingEstimator needs `query_exec` to run sample queries. To break this cycle, we will convert SamplingEstimator to an interface and have cardinality_estimator only depend on the interface.

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: