mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
dbms: addition to prev. revision [#METR-13129].
This commit is contained in:
parent
110422dc21
commit
299f32dc14
@ -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 : "");
|
||||
|
Loading…
Reference in New Issue
Block a user