Skip to content

Commit 42cd9a4

Browse files
Tony-Romanovspuchin
authored andcommitted
Allow logging AST with free arguments. (#7573)
1 parent 282df40 commit 42cd9a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/library/yql/core/services/yql_out_transformers.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ IGraphTransformer::TStatus TExprLogTransformer::operator()(
5353
Y_UNUSED(ctx);
5454
output = input;
5555
if (YQL_CVLOG_ACTIVE(Level, Component)) {
56+
TConvertToAstSettings settings;
57+
settings.AllowFreeArgs = true;
58+
settings.RefAtoms = true;
59+
auto ast = ConvertToAst(*input, ctx, settings);
5660
TStringStream out;
57-
auto ast = ConvertToAst(*input, ctx, TExprAnnotationFlags::None, true);
5861
ast.Root->PrettyPrintTo(out, TAstPrintFlags::ShortQuote | TAstPrintFlags::PerLine);
5962
YQL_CVLOG(Level, Component) << Description << ":\n" << out.Str();
6063
}

0 commit comments

Comments
 (0)