-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Querying
-
Labels:
-
Fully Compatible
-
ALL
-
-
Query 2020-09-07, Query 2020-09-21, Query 2020-10-05, Query 2020-10-19, Query 2020-11-02, Query 2020-11-16
When I was testing out using the $or operator in the first parameter to find() (with SBE mode enabled), I found a case where an invariant in SlotBasedStageBuilder::buildOr() fails.
The invariant that fails is "invariant(_data.resultSlot);" around line 350 of "src/mongo/db/query/sbe_stage_builder.cpp".
The goal of this task is to investigate why the invariant is failing, diagnose the underlying problem, and implement a fix.
When this issue is fixed, the "jstests/core/and_or_nested.js" should be updated to verify all of its queries work when there is both an index on field 'a' and an index on field 'b'.
- is related to
-
SERVER-49536 SBE stage builder is broken for SORT when SORT comes before FETCH
- Closed
- related to
-
SERVER-50373 Add support for covered projections in SBE
- Closed