[SERVER-60136] sbeGroupCompatible flag needs to include the ExpressionContext sbeCompatible flag Created: 22/Sep/21  Updated: 29/Oct/23  Resolved: 22/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Eric Cox (Inactive) Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

> coll.aggregate([{$group: {_id: '$item', s: {$sum: {$let: {vars: {var1: 1}, in : {$sum: ["$$var1", "$price"]}}}}}}])
uncaught exception: Error: command failed: {
	"ok" : 0,
	"errmsg" : "Unsupported expression in SBE stage builder: $sum",

Sprint: QE 2021-10-04
Participants:

 Description   

An accumulator can have a complex argument expression that isn't supported by sbe. Right now we just check if the accumulator is supported by sbe. We need to take the DocumentSourceGroup flag should be the conjunction of sbeGroupCompatible and sbeCompatible.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 22/Sep/21 ]

Author:

{'name': 'Yoonsoo Kim', 'email': 'yoonsoo.kim@mongodb.com', 'username': 'yun-soo'}

Message: SERVER-60136 Extend DocumentSourceGroup sbeGroupCompatible flag to use sbeCompatible flag
Branch: master
https://github.com/mongodb/mongo/commit/33b918c720a50ea880f68d65b908fc8771eb07df

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