Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Query Optimization
-
Fully Compatible
-
QO 2023-12-25
Description
The explain outputs for execution stats are inconsistent between CQF and "classic" optimizers.
Specifically, in "executionStats" CQF does not expose "executionTimeMillisEstimate", "executionTimeMicros", "executionTimeNanos".
Although the SBE machinery should be already in place, It seems that the CQF explainer does not expose those fields. This ticket should address this along with extending the corresponding tests.
There are "TODO SERVER-83762" tags in js tests, which need to be addressed.
hana.pearlman@mongodb.com investigated this further and recognized that:
"the problem is this] line, where we only mark that we should collect timing info when expCtx->mayDbProfile. However, the stage builders version of this code checks expCtx->explain too."