dbms: addition to prev. revision [#METR-13129].

This commit is contained in:
Alexey Milovidov 2014-10-10 02:52:20 +04:00
parent 110422dc21
commit 299f32dc14

View File

@ -152,6 +152,17 @@ void formatAST(const ASTSelectQuery & ast, std::ostream & s, size_t indent, bo
formatAST(*ast.table, s, indent, hilite, one_line);
}
if (ast.final)
{
s << (hilite ? hilite_keyword : "") << nl_or_ws << indent_str << "FINAL" << (hilite ? hilite_none : "");
}
if (ast.sample_size)
{
s << (hilite ? hilite_keyword : "") << nl_or_ws << indent_str << "SAMPLE " << (hilite ? hilite_none : "");
formatAST(*ast.sample_size, s, indent, hilite, one_line);
}
if (ast.array_join_expression_list)
{
s << (hilite ? hilite_keyword : "") << nl_or_ws << indent_str << "ARRAY JOIN " << (hilite ? hilite_none : "");
@ -166,17 +177,6 @@ void formatAST(const ASTSelectQuery & ast, std::ostream & s, size_t indent, bo
formatAST(*ast.join, s, indent, hilite, one_line);
}
if (ast.final)
{
s << (hilite ? hilite_keyword : "") << nl_or_ws << indent_str << "FINAL" << (hilite ? hilite_none : "");
}
if (ast.sample_size)
{
s << (hilite ? hilite_keyword : "") << nl_or_ws << indent_str << "SAMPLE " << (hilite ? hilite_none : "");
formatAST(*ast.sample_size, s, indent, hilite, one_line);
}
if (ast.prewhere_expression)
{
s << (hilite ? hilite_keyword : "") << nl_or_ws << indent_str << "PREWHERE " << (hilite ? hilite_none : "");