SERVER-137339ClosedFixed

LiteParseDocumentSource::getMutableSubpipelines is unstable

LiteParsedDocumentSource::getMutableSubpipelines() exposes the underlying vector of subpipelines during desugaring. The desugarer doesn't need to mutate the vector itself, instead it just needs to desugar each individual subpipeline. The order of the vector container must remain immutable. As part of this ticket, implement a container that allows the desugarer to expand each subpipeline, while guaranteeing the subpipeline vector itself remains unchanged.

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
dino-tech-debt