-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
QE 2022-07-25, QE 2022-08-08, QE 2022-08-22
-
35
There's currently a dassert that fails if this scenario arises. I think that parent/child dependencies (or more generally 'ancestral' dependencies like "a" and "a.b.c") should probably disqualify a COLUMN_SCAN since we will need to go to the row store probably to re-assemble the parent. This may not be the case in all cases, but should be a fairly good heuristic for the time being. For example I could imagine querying for {a.nested: {$exists: false}} and somehow knowing that means that in all matching results a will be a scalar value.
I think fixing it to work in this case would not be too bad, but it's probably not something that would be beneficial most of the time.
- depends on
-
SERVER-66418 Bad projection created during dependency analysis due to string order assumption
- Closed
- is duplicated by
-
SERVER-68570 Complete TODO listed in SERVER-62985
- Closed
- is related to
-
SERVER-67742 Fix column scan stage to accommodate overlapping paths
- Closed