summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sbe/values/value_printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/sbe/values/value_printer.cpp')
-rw-r--r--src/mongo/db/exec/sbe/values/value_printer.cpp9
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