-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
ALL
Here is an example a large $group query that causes stack overflow (tested on v6.0 opt build, statically linked): stack-overflow-example-group-query.txt.
Prior to SPM-2697 (which shipped as part of v7.0), for queries containing hundreds of expressions, the SBE stage builder was prone to generate very deep SBE plan trees in some scenarios. For $group specifically, it's pretty easy to get the SBE stage builder to generate very deep SBE plan trees which will stack overflow during execution (as shown in stack-overflow-example-group-query.txt).
The goal of this task is to implement a solution to this problem so that these kinds of queries won't crash on v6.0. If v5.0 is affected by this issue, we may also need to backport the fix to v5.0 as well.
- is related to
-
SERVER-91617 Simplify $ifNull stage builder generation in 6.0
- Closed