SERVER-131305ClosedFixed

Sharded explain of extension $search in $unionWith+$lookup fails with IDLDuplicateField (40413)

h3. Overview On a sharded cluster, running explain on an extension {{$search}} / {{$searchMeta}} pipeline that contains {{$unionWith}} \+ {{$lookup}} fails to serialize the explain response: The {{explainVersion}} field is written twice into the explain/response BSON, tripping IDL duplicate\-field validation. This is an explain\-serialization bug \(distinct from SERVER\-131024, which adapted explain test _expectations_ to the extension stage names\). h3. Steps to reproduce h3. Hypothesis T

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

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

No components specified.

Labels
Tags and classification
bkpdino-extensions-apidino-extensions-api-90-burndown