-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Fully Compatible
-
Query 2020-09-07, Query 2020-09-21, Query 2020-10-05, Query 2020-10-19
As stated in the design document , we would like the array of ‘consideredValues’ in the implicit array traversal case to not report the array containing every element at the end. This ticket should investigate how to update the ElementIterator interface to obtain this behavior. If it’s not too complicated, then this ticket should update the interface accordingly.
A potential implementation would involve:
- Updating the enum ‘LeafArrayBehavior’ with a new value (‘kTraverseOmitArray’ or something similar) to describe the desired behavior.
- Updating the implementation of BSONElementIterator::'next()' to use the SimpleArrayElementIterator at the end of a path when it sees this new enum value, since this iterator allows us to specify whether we want to return the array at the end or not.