diff options
author | David Percy <david.percy@mongodb.com> | 2022-05-27 20:16:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-30 17:28:24 +0000 |
commit | 39077b8d14957a4f63ea7e2fd23494011b987393 (patch) | |
tree | 4f8ada23905a427600a12dfadd262cf2f4b64328 /src/mongo/db/query/optimizer/explain.h | |
parent | 8664909531ba0f604f9e7da16c0f14bc144a4dd4 (diff) | |
download | mongo-39077b8d14957a4f63ea7e2fd23494011b987393.tar.gz |
SERVER-66786 Add V2Compact explain format for Bonsai
Diffstat (limited to 'src/mongo/db/query/optimizer/explain.h')
-rw-r--r-- | src/mongo/db/query/optimizer/explain.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/query/optimizer/explain.h b/src/mongo/db/query/optimizer/explain.h index 5cc0f29fafe..dfc8cdda77d 100644 --- a/src/mongo/db/query/optimizer/explain.h +++ b/src/mongo/db/query/optimizer/explain.h @@ -75,6 +75,13 @@ public: const cascades::Memo* memo = nullptr, const NodeToGroupPropsMap& nodeMap = {}); + // Optionally display logical and physical properties using the memo. + // whenever memo delegators are printed. + static std::string explainV2Compact(const ABT& node, + bool displayProperties = false, + const cascades::Memo* memo = nullptr, + const NodeToGroupPropsMap& nodeMap = {}); + static std::string explainNode(const ABT& node); static std::pair<sbe::value::TypeTags, sbe::value::Value> explainBSON( |