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

Write gdb pretty printers for OptimizerEstimate types

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

      Printing an estimate in GDB results in:

      (gdb) p conjuctSel
      $3 = {
        <mongo::cost_based_ranker::OptimizerEstimate<mongo::cost_based_ranker::StrongDouble<mongo::cost_based_ranker::StrongDoubleTag<{{83, 101, 108, 101, 99, 116, 105, 118, 105, 116, ...}}, mongo::cost_based_ranker::EstimationUnit::UnitLess, double, mongo::cost_based_ranker::SelectivityTagParam> > >> = {
          <mongo::cost_based_ranker::EstimateBase> = {
            _source = mongo::cost_based_ranker::EstimationSource::Code
          },
          members of mongo::cost_based_ranker::OptimizerEstimate<mongo::cost_based_ranker::StrongDouble<mongo::cost_based_ranker::StrongDoubleTag<{{83, 101, 108, 101, 99, 116, 105, 118, 105, 116, ...}}, mongo::cost_based_ranker::EstimationUnit::UnitLess, double, mongo::cost_based_ranker::SelectivityTagParam> > >:
          _estimate = {
            _v = 1
          }
        }, <No data fields>} 

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

              Created:
              Updated: