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

$push, $addToSet, $setUnion, $concatArrays window functions should respect memory limits

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      This is for the classic engine, note that the SBE $addToSet, $setUnion, $concatArrays window functions already do this. SBE $push does not, SERVER-96224 tracks the work there

      $push should respect internalQueryMaxPushBytes

      $addToSet should respect internalQueryAddToSetBytes

      $setUnion should respect internalQuerySetUnionBytes

      $concatArrays should respect internalQueryConcatArraysBytes

      We should also add tests for these, ideally a JS test that also runs in the all-feature-flags variant so that we get SBE coverage too, similar to this existing test for $setUnion/$concatArrays

            Assignee:
            Unassigned Unassigned
            Reporter:
            militsa.sotirova@mongodb.com Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: