Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-431

Relax aggregate explain test for 4.2 servers

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      4.2 servers may optimize away aggregation pipelines that can be computed using a query (SERVER-24860). This caused an unexpected test failure in testExplainOption, since the test was looking for a "stages" field within the aggregate result's first and only document. We do not map the explain result (unlike RUBY-1788), so a quick fix would just be to relax this assertion to allow either "stages" or "queryPlanner".

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: