-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Query Execution
-
Execution Team 2021-02-22
With clustered indexes, calling RecordId::asLong() on a RecordId that has the String underlying type will trigger an invariant.
I've compiled a list of these calls located in SBE code.
- src/mongo/db/exec/sbe/stages/ix_scan.cpp
- src/mongo/db/exec/sbe/stages/scan.cpp
- src/mongo/db/query/sbe_stage_builder_coll_scan.cpp
- https://github.com/mongodb/mongo/blob/275bc8977cfd8845cb4773d639504698cd99de90/src/mongo/db/query/sbe_stage_builder_coll_scan.cpp#L189
- https://github.com/mongodb/mongo/blob/275bc8977cfd8845cb4773d639504698cd99de90/src/mongo/db/query/sbe_stage_builder_coll_scan.cpp#L312
- https://github.com/mongodb/mongo/blob/275bc8977cfd8845cb4773d639504698cd99de90/src/mongo/db/query/sbe_stage_builder_coll_scan.cpp#L464
- is related to
-
SERVER-60405 Support clustered collection querying in SBE
- Backlog