clickhouse: added FINAL to formatAST [#CONV-7363].

This commit is contained in:
Michael Kolupaev 2013-04-29 11:34:28 +00:00
parent e3999c23af
commit 7b343659e6

View File

@ -112,6 +112,11 @@ 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 : "");