ExportXMLWordPrintableJSON

    • Query Execution
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Overview

      Add a $push implementation of the compact hash agg accumulator, so that CompactHashAggStage can run $push without the per-row array encoding that HashAggStage uses.

      Scope of Work

      • CompactPushHashAggAccumulator with a CompactPushState of the pushed values and their approximate size.
      • Enforce the same per-array size cap as the existing VM $push, through a shared ByteCode::addToArrayCapped() helper. Missing values are neither stored nor charged.
      • Report the state's heap usage, without counting each element's inline tag and value twice.

      Acceptance Criteria

      • Unit tests compare results with the VM $push over edge-case sequences, and cover the size cap, exact heap usage, and heap usage after finalize.

            Assignee:
            Evan Bergeron
            Reporter:
            Evan Bergeron
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: