[DOCS-14006] Investigate changes in SERVER-50445: Return the value as double when NumberLong subtraction overflows in ExpressionSubtract Created: 20/Nov/20 Updated: 13/Nov/23 Due: 07/May/21 Resolved: 07/May/21 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0, 4.0.22, 3.6.22, 4.2.12, 4.4.3, 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: | Andrew Feierabend (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 2 years, 39 weeks, 5 days ago | ||||||||
| Epic Link: | DOCSP-9747 | ||||||||
| Story Points: | 2 | ||||||||
| Description |
DescriptionDownstream Change Summary Similar to what we have mentioned for $pow, we should update the docs for $sum and $subtract to describe the overflow behaviour. The result will have the same type as the input except when it cannot be represented accurately in that type. In these cases: A 32-bit integer will be converted to a 64-bit integer if the result is representable as a 64-bit integer. Description of Linked TicketThe ExpressionSubtract does subtract operation on two long long data type. This can cause an overflow with large numbers. The right way to do this is to use the DoubleDoubleSummation helper that we use while adding number in ExpressionSum. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |