Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-60136

sbeGroupCompatible flag needs to include the ExpressionContext sbeCompatible flag

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • 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

    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.

      Attachments

        Activity

          People

            eric.cox@mongodb.com Eric Cox (Inactive)
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: