[DOCS-16002] [Server] Document the cases where evaluation of $add/$multiply does not follow the user presented order Created: 03/Apr/23 Updated: 13/Nov/23 Resolved: 13/Sep/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Rushan Chen | Assignee: | Lauren Tran |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | quick-win, release, server-docs-bug-bash | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 21 weeks, 5 days ago |
| Description |
|
https://jira.mongodb.org/browse/SERVER-73154 dealt with variadic operator ($add and $multilpe) with large oprand list (> 100) by optimizing the representation to balanced tree and therefore no longer following the left to right evaluation order presented by the user. We should mention this limitation in the doc that cases like this (sbe, $add/$multiply, large list of operands) the strict L->R order is not followed,
Either here close to the expressions:
https://www.mongodb.com/docs/manual/reference/operator/aggregation/add/ https://www.mongodb.com/docs/manual/reference/operator/aggregation/multiply/
Or in release notes for 6.3. |
| Comments |
| Comment by Lauren Tran [ 08/Sep/23 ] |