aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony-Romanov <150126326+Tony-Romanov@users.noreply.github.com>2024-08-09 10:20:04 +0200
committerGitHub <noreply@github.com>2024-08-09 11:20:04 +0300
commit3a7b2751fd316f4de3f54743991e48475b9b391a (patch)
tree6954c97effd9a4e12c903c2d25d167c67c494e72
parentc65f27b8a8a735efa22209107d490a5fad15b1a7 (diff)
downloadydb-3a7b2751fd316f4de3f54743991e48475b9b391a.tar.gz
Allow logging AST with free arguments. (#7573)
-rw-r--r--ydb/library/yql/core/services/yql_out_transformers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ydb/library/yql/core/services/yql_out_transformers.cpp b/ydb/library/yql/core/services/yql_out_transformers.cpp
index 5e4cfccb9e..badae8f4f6 100644
--- a/ydb/library/yql/core/services/yql_out_transformers.cpp
+++ b/ydb/library/yql/core/services/yql_out_transformers.cpp
@@ -53,8 +53,11 @@ IGraphTransformer::TStatus TExprLogTransformer::operator()(
Y_UNUSED(ctx);
output = input;
if (YQL_CVLOG_ACTIVE(Level, Component)) {
+ TConvertToAstSettings settings;
+ settings.AllowFreeArgs = true;
+ settings.RefAtoms = true;
+ auto ast = ConvertToAst(*input, ctx, settings);
TStringStream out;
- auto ast = ConvertToAst(*input, ctx, TExprAnnotationFlags::None, true);
ast.Root->PrettyPrintTo(out, TAstPrintFlags::ShortQuote | TAstPrintFlags::PerLine);
YQL_CVLOG(Level, Component) << Description << ":\n" << out.Str();
}