diff options
Diffstat (limited to 'src/mongo/db/query/plan_explainer_sbe.cpp')
| -rw-r--r-- | src/mongo/db/query/plan_explainer_sbe.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/query/plan_explainer_sbe.cpp b/src/mongo/db/query/plan_explainer_sbe.cpp index 18f42a417fa..2d5371804a2 100644 --- a/src/mongo/db/query/plan_explainer_sbe.cpp +++ b/src/mongo/db/query/plan_explainer_sbe.cpp @@ -56,7 +56,13 @@ void statsToBSON(const QuerySolutionNode* node, return; } - bob->append("stage", stageTypeToString(node->getType())); + StageType nodeType = node->getType(); + if ((nodeType == STAGE_COLLSCAN) && + static_cast<const CollectionScanNode*>(node)->doSbeClusteredCollectionScan()) { + bob->append("stage", sbeClusteredCollectionScanToString()); + } else { + bob->append("stage", stageTypeToString(node->getType())); + } bob->appendNumber("planNodeId", static_cast<long long>(node->nodeId())); // Display the BSON representation of the filter, if there is one. |
