summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/common.cpp
diff options
context:
space:
mode:
authorermolovd <[email protected]>2023-09-19 09:34:23 +0300
committerermolovd <[email protected]>2023-09-19 09:54:05 +0300
commita2668d31f6f18029eb3c9c525d3b38a7fb7f6859 (patch)
tree51ae080824b808f941a4a9e03bbb26b36df3883c /yt/cpp/mapreduce/interface/common.cpp
parent11536ca6ed95f3aca890e6ff4ff3774024d1a876 (diff)
Debug printing for NYT::TTableSchema
Diffstat (limited to 'yt/cpp/mapreduce/interface/common.cpp')
-rw-r--r--yt/cpp/mapreduce/interface/common.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/interface/common.cpp b/yt/cpp/mapreduce/interface/common.cpp
index 590fac3a050..31c5990e6bb 100644
--- a/yt/cpp/mapreduce/interface/common.cpp
+++ b/yt/cpp/mapreduce/interface/common.cpp
@@ -15,7 +15,6 @@
namespace NYT {
-using ::google::protobuf::FieldDescriptor;
using ::google::protobuf::Descriptor;
////////////////////////////////////////////////////////////////////////////////
@@ -499,6 +498,11 @@ bool operator==(const TTableSchema& lhs, const TTableSchema& rhs)
lhs.UniqueKeys() == rhs.UniqueKeys();
}
+void PrintTo(const TTableSchema& schema, std::ostream* out)
+{
+ (*out) << NodeToYsonString(schema.ToNode(), NYson::EYsonFormat::Pretty);
+}
+
////////////////////////////////////////////////////////////////////////////////
TKeyBound::TKeyBound(ERelation relation, TKey key)