Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14609

[Server] Investigate changes in SERVER-57741: SBE should order projection fields ahead of expression fields in a $project stage

      Description

      Downstream Change Summary

      The change is explained here: https://docs.google.com/document/d/1QIgFj_lc0AlH2fPCAi4QdgPhXFGqz--LjpBp4KDff-Q

      We might want to reflect this change in our documentation if we already mention field ordering somewhere in the documentation. However, it's best to avoid having any guarantees for the field ordering, as it might change in the future. As a matter of fact, it's best to explicitly mention in the documentation that there's no guarantee for the field ordering and user applications should not depend on it.

      Description of Linked Ticket

      The behavior of $project in the classic engine is to order projection fields ahead of fields which require expression evaluation. SBE engine doesn't seemed to follow this convention, which is producing failures on the aggregation fuzzers. We should fix the behavior to match that of classic engine.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            jason.price@mongodb.com Jason Price
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 30 weeks, 2 days ago