[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: SERVER-49742 ExpressionAdd in SBE should use doubleDoubleSum built-in when called with more than two operands
Branch: svilen-optimizer-poc
https://github.com/mongodb/mongo/commit/a70ac5e30ee48259173ad172c1ca38999871181d

Comment by Githook User [ 11/Sep/20 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-49742 ExpressionAdd in SBE should use doubleDoubleSum built-in when called with more than two operands
Branch: master
https://github.com/mongodb/mongo/commit/a70ac5e30ee48259173ad172c1ca38999871181d

Generated at Thu Feb 08 05:20:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.