aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraozeritsky <aozeritsky@ydb.tech>2023-09-18 21:24:16 +0300
committeraozeritsky <aozeritsky@ydb.tech>2023-09-18 21:51:08 +0300
commit37b099086946de1c276f0c4d9e2f102202e1d999 (patch)
tree1916729f68ab47e08f560ea60e3b62442841e0f2
parentbd76adca640c9cd6be966a5ece979069498c668e (diff)
downloadydb-37b099086946de1c276f0c4d9e2f102202e1d999.tar.gz
Join reorder logs
-rw-r--r--ydb/library/yql/providers/yt/provider/yql_yt_join_reorder.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/ydb/library/yql/providers/yt/provider/yql_yt_join_reorder.cpp b/ydb/library/yql/providers/yt/provider/yql_yt_join_reorder.cpp
index b5cc8f2029..4615e7e338 100644
--- a/ydb/library/yql/providers/yt/provider/yql_yt_join_reorder.cpp
+++ b/ydb/library/yql/providers/yt/provider/yql_yt_join_reorder.cpp
@@ -3,6 +3,7 @@
#include <ydb/library/yql/parser/pg_wrapper/interface/optimizer.h>
#include <ydb/library/yql/providers/common/provider/yql_provider.h>
+#include <ydb/library/yql/utils/log/log.h>
namespace NYql {
@@ -104,11 +105,9 @@ public:
std::function<void(const TString& str)> log;
- if (Debug) {
- log = [](const TString& str) {
- Cerr << str << "\n";
- };
- }
+ log = [](const TString& str) {
+ YQL_CLOG(INFO, ProviderYt) << str;
+ };
std::unique_ptr<IOptimizer> opt = std::unique_ptr<IOptimizer>(MakePgOptimizer(input, log));