[DOCS-15420] [SERVER] Investigate changes in SERVER-65735: $add operator should not use DoubleDoubleSummation in the classic engine Created: 16/Jun/22  Updated: 13/Nov/23  Resolved: 07/Dec/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 6.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: Jeffrey Allen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-65735 $add operator should not use DoubleDo... Closed
Duplicate
is duplicated by DOCS-15541 Investigate changes in SERVER-67282: ... Closed
Participants:
Days since reply: 1 year, 8 weeks, 2 days ago
Epic Link: DOCSP-21764

 Description   
Original Downstream Change Summary

This is a small change in how floating-point $add expressions are evaluated. In operand lists with 10+ floating points, there may be a slightly different output depending on floating point errors.

Description of Linked Ticket

Discussed with geert.bosch@mongodb.com who implemented DoubleDoubleSummation in SERVER-19735 and we determined that DoubleDoubleSummation was implemented for use in $group aggregation operators like $sum where the user does not have control over the ordering of input arguments and there are consistently a very large number of values that need to be summed.

For the $add expression, where arguments are passed in explicitly by the end user, we should be prioritizing the behavior which is most clear and obvious and add doubles together normally. 

This ticket fell out of SERVER-63099, which is attempting to make $add behave the same with and without the constant folding optimization.



 Comments   
Comment by Githook User [ 12/Dec/22 ]

Author:

{'name': 'Jeff Allen', 'email': 'jeffrey.allen@10gen.com', 'username': 'jeff-allen-mongo'}

Message: (DOCS-15420): 6.1 $add compatibility update (#2233)

  • add link to aggregation page
  • add example
  • review edits
  • typo
  • tweak heading title
  • wording
Comment by Githook User [ 07/Dec/22 ]

Author:

{'name': 'Jeff Allen', 'email': 'jeffrey.allen@10gen.com', 'username': 'jeff-allen-mongo'}

Message: (DOCS-15420): 6.1 $add compatibility update (#2233)

  • add link to aggregation page
  • add example
  • review edits
  • typo
  • tweak heading title
  • wording
Comment by Education Bot [ 16/Jun/22 ]

Fix Version updated for upstream SERVER-65735:
6.1.0-rc0

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