diff options
author | Drew Paroski <drew.paroski@mongodb.com> | 2022-08-21 00:39:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-31 19:59:22 +0000 |
commit | c57d57b8074326b8c040738e95bce4ce84be441e (patch) | |
tree | 733342fc4fe379b4d5da6e53a2b71f0d6bbb9867 /src/mongo/db/exec/sbe/values/value_printer.cpp | |
parent | 07b2084edff8e03fafa31c6daf5e6b16e005f8ae (diff) | |
download | mongo-c57d57b8074326b8c040738e95bce4ce84be441e.tar.gz |
SERVER-68970 Update sbe_stage_builder_projection.cpp to use traverseP
Diffstat (limited to 'src/mongo/db/exec/sbe/values/value_printer.cpp')
-rw-r--r-- | src/mongo/db/exec/sbe/values/value_printer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/exec/sbe/values/value_printer.cpp b/src/mongo/db/exec/sbe/values/value_printer.cpp index a04d1407930..090735671e5 100644 --- a/src/mongo/db/exec/sbe/values/value_printer.cpp +++ b/src/mongo/db/exec/sbe/values/value_printer.cpp @@ -27,6 +27,7 @@ * it in the license file. */ #include "mongo/db/exec/sbe/values/value_printer.h" +#include "mongo/db/exec/sbe/values/makeobj_spec.h" #include "mongo/db/exec/sbe/values/sort_spec.h" #include "mongo/db/exec/sbe/values/value.h" #include "mongo/platform/basic.h" @@ -154,6 +155,9 @@ void ValuePrinter<T>::writeTagToStream(TypeTags tag) { case TypeTags::sortSpec: stream << "sortSpec"; break; + case TypeTags::makeObjSpec: + stream << "makeObjSpec"; + break; case TypeTags::indexBounds: stream << "indexBounds"; break; @@ -454,7 +458,7 @@ void ValuePrinter<T>::writeValueToStream(TypeTags tag, Value val, size_t depth) stream << ')'; break; } - case value::TypeTags::ftsMatcher: { + case TypeTags::ftsMatcher: { auto ftsMatcher = getFtsMatcherView(val); stream << "FtsMatcher("; writeObjectToStream(ftsMatcher->query().toBSON()); @@ -466,6 +470,9 @@ void ValuePrinter<T>::writeValueToStream(TypeTags tag, Value val, size_t depth) writeObjectToStream(getSortSpecView(val)->getPattern()); stream << ')'; break; + case TypeTags::makeObjSpec: + stream << "MakeObjSpec(" << getMakeObjSpecView(val)->toString() << ")"; + break; case TypeTags::indexBounds: // When calling toString() we don't know if the index has a non-simple collation or // not. Passing false could produce invalid UTF-8, which is not acceptable when we are |