-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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.