[DOCS-14609] [Server] Investigate changes in SERVER-57741: SBE should order projection fields ahead of expression fields in a $project stage Created: 29/Jun/21  Updated: 13/Nov/23  Resolved: 27/Sep/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 5.1.0-rc0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jason Price
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-57741 SBE should order projection fields ah... Closed
Participants:
Days since reply: 2 years, 19 weeks, 2 days ago
Epic Link: DOCSP-14300
Story Points: 3

 Description   

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.)



 Comments   
Comment by Githook User [ 27/Sep/21 ]

Author:

{'name': 'jason-price-mongodb', 'email': 'jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com'}

Message: DOCS-14609 SBE order projection fields
Branch: v4.0
https://github.com/mongodb/docs/commit/d3db9398e0931604a60f702e35d6054bb9387c84

Comment by Githook User [ 27/Sep/21 ]

Author:

{'name': 'jason-price-mongodb', 'email': 'jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com'}

Message: DOCS-14609 SBE order projection fields
Branch: v4.2
https://github.com/mongodb/docs/commit/5a792286ca38a7f538d1c8b96eb575f886257fd7

Comment by Githook User [ 27/Sep/21 ]

Author:

{'name': 'jason-price-mongodb', 'email': 'jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com'}

Message: DOCS-14609 SBE order projection fields
Branch: v4.4
https://github.com/mongodb/docs/commit/aaaf33762458d539d2fa9b16b2096c2f940fe865

Comment by Githook User [ 27/Sep/21 ]

Author:

{'name': 'jason-price-mongodb', 'email': 'jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com'}

Message: DOCS-14609 SBE order projection fields
Branch: v5.0
https://github.com/mongodb/docs/commit/ae0e219fc95da8a4e853a840f3cf80e07cdd2822

Comment by Githook User [ 27/Sep/21 ]

Author:

{'name': 'jason-price-mongodb', 'email': 'jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com'}

Message: DOCS-14609 SBE order projection fields
Branch: master
https://github.com/mongodb/docs/commit/293425ddc75d383774e1c956e74500d585c94dea

Generated at Thu Feb 08 08:10:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.