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

improve query planner test

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.5
    • None
    • Querying
    • None

    Description

      db/query/query_planner_test.cpp currently uses a function called dumpSolutions() to display the list of generated query plans. It does not have assertions to automatically verify that the expected solutions were in fact generated by the query planner. We would like to better automate this test.

      We want to be able to assert that a particular solution was generated by the planner. This could look something like an "expectSolution()" function which takes a textual representation of a QuerySolution and confirms that this solution was in fact generated by the planner.

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: