From f507540b6c165ccde8317937d81b0949024a6aa2 Mon Sep 17 00:00:00 2001 From: Alexey Ozeritskiy Date: Wed, 29 May 2024 13:29:17 +0100 Subject: [PATCH] Print KeyColumns --- ydb/library/yql/core/yql_statistics.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ydb/library/yql/core/yql_statistics.cpp b/ydb/library/yql/core/yql_statistics.cpp index f28080b31b9d..70d5ff4af1e2 100644 --- a/ydb/library/yql/core/yql_statistics.cpp +++ b/ydb/library/yql/core/yql_statistics.cpp @@ -20,6 +20,9 @@ static TString ConvertToStatisticsTypeString(EStatisticsType type) { std::ostream& NYql::operator<<(std::ostream& os, const TOptimizerStatistics& s) { os << "Type: " << ConvertToStatisticsTypeString(s.Type) << ", Nrows: " << s.Nrows << ", Ncols: " << s.Ncols << ", ByteSize: " << s.ByteSize << ", Cost: " << s.Cost; + for (const auto& c : s.KeyColumns) { + os << ", " << c; + } return os; }