From 7b343659e66ee8ca6c64613b794d13ae90d68bc0 Mon Sep 17 00:00:00 2001 From: Michael Kolupaev Date: Mon, 29 Apr 2013 11:34:28 +0000 Subject: [PATCH] clickhouse: added FINAL to formatAST [#CONV-7363]. --- dbms/src/Parsers/formatAST.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbms/src/Parsers/formatAST.cpp b/dbms/src/Parsers/formatAST.cpp index d5ab634d2cb..f996f2117b9 100644 --- a/dbms/src/Parsers/formatAST.cpp +++ b/dbms/src/Parsers/formatAST.cpp @@ -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 : "");