Currently SBE index scan uses key patterns from the index catalog for wildcard index, which may look like "{$**: 1}". However, we should use the expanded index pattern instead generated by the query planner.
These two key patterns may differ in length which in turn fails the invariant during index key rehydration.
- related to
-
SERVER-78307 SBE scan stage may process wildcard index reserved record id and erroneously thinks there is index corruption
- Closed