sbeGroupCompatible flag needs to include the ExpressionContext sbeCompatible flag

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Hide
      > 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",
      
      Show
      > 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",
    • QE 2021-10-04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Eric Cox (Inactive)
            Reporter:
            Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: