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

Create unittest fixture for SBE PlanStages

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2020-08-24

      The unittest fixture for SBE PlanStages should provide a mechanism to create a PlanStage sub-tree representing an input to the PlanStage being tested, and served as a mocked data queue. This can be implemented by means of coscan - limit 1 - project - unwind subtree, where project stage just projects out a constant array holding BSON elements representing input stream of documents, and unwind stage flattens the array into a stream of documents.

      Some additional helper methods may be required to simply the execution and result validation of the PlanStage tree.

            Assignee:
            andrew.paroski@mongodb.com Drew Paroski
            Reporter:
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: