[SERVER-49742] ExpressionAdd in SBE should use doubleDoubleSum built-in when called with more than two operands Created: 20/Jul/20 Updated: 29/Oct/23 Resolved: 11/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.8.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Anton Korshunov | Assignee: | Milena Ivanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query 2020-09-07, Query 2020-09-21 |
| Participants: |
| Description |
|
The doubleDoubleSum VM built-in function uses a special summation algorithm which works better when summing up a series (> 2) of integral values. It should also allow to preserve the existing semantics for this specific scenario. We should still use the generic addition instruction for ExpressionAdd with two operands. Also, the existing translation logic for ExpressionAdd assumes it can only be called with two operands, which is not the case and needs to be fixed. |
| Comments |
| Comment by Githook User [ 11/Sep/20 ] |
|
Author: {'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}Message: |
| Comment by Githook User [ 11/Sep/20 ] |
|
Author: {'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}Message: |