[SERVER-75672] Classic engine incorrectly use 34 digits precision when converting from double to decimal Created: 04/Apr/23 Updated: 29/Oct/23 Resolved: 06/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Zixuan Zhuang | Assignee: | Davis Haupt (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 7.1-Type-Precision-Fixes | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Execution
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||
| Sprint: | QI 2023-04-17 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Classic engine use 34 digits precision when converting from double to decimal for left hand side of $add (double + decimal), while for other cases like right hand side of $add or $multiply 15 digits precision is used. In SBE, 15 digits precision is used in all cases.
Per geert.bosch@mongodb.com, 15 digits precision is the correct one we should use
|
| Comments |
| Comment by Githook User [ 05/Apr/23 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |