SERVER-138037In Code Review
Add a compact hash agg $push accumulator
h2. 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. h2. 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. *