-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.5.1
-
Component/s: Querying
-
Fully Compatible
-
ALL
-
Query 2020-05-18, Query 2020-06-01
-
5
We don't set the 'explain' flag on the ExpressionContext when creating a ParsedUpdate. This means that the DocumentSources used in a pipeline update are parsed with the explain flag set to false, even if the query is an explain. This causes the DocumentSource to be initialized incorrectly and triggers an invariant in getNext().