SERVER-137589ClosedFixed

Make SBE $sum/$avg state available outside VM

This change makes double double summation state available outside of the VM. The state is stored on a struct. The struct provides read/write methods to transform to/from the SBE array state representation. This dedups some logic between $sum and $avg. This also unlocks future work that uses the struct directly without the SBE array.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.