mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Update tests
This commit is contained in:
parent
d5e3e7ff76
commit
94d55abfd1
@ -197,7 +197,6 @@ ASTPtr ASTCreateQuery::clone() const
|
|||||||
void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
|
void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
|
||||||
{
|
{
|
||||||
frame.need_parens = false;
|
frame.need_parens = false;
|
||||||
frame.expression_list_always_start_on_new_line = true;
|
|
||||||
|
|
||||||
if (!database.empty() && table.empty())
|
if (!database.empty() && table.empty())
|
||||||
{
|
{
|
||||||
@ -271,6 +270,8 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
|
|||||||
<< (!as_database.empty() ? backQuoteIfNeed(as_database) + "." : "") << backQuoteIfNeed(as_table);
|
<< (!as_database.empty() ? backQuoteIfNeed(as_database) + "." : "") << backQuoteIfNeed(as_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frame.expression_list_always_start_on_new_line = true;
|
||||||
|
|
||||||
if (columns_list)
|
if (columns_list)
|
||||||
{
|
{
|
||||||
settings.ostr << (settings.one_line ? " (" : "\n(");
|
settings.ostr << (settings.one_line ? " (" : "\n(");
|
||||||
@ -290,6 +291,8 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
|
|||||||
settings.ostr << (settings.one_line ? ")" : "\n)");
|
settings.ostr << (settings.one_line ? ")" : "\n)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frame.expression_list_always_start_on_new_line = false;
|
||||||
|
|
||||||
if (storage)
|
if (storage)
|
||||||
storage->formatImpl(settings, state, frame);
|
storage->formatImpl(settings, state, frame);
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
200
|
200
|
||||||
400
|
400
|
||||||
CREATE TABLE test.ttl_repl2\n(\n `d` Date, \n `x` UInt32\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/ttl_repl\', \'2\')\nPARTITION BY toDayOfMonth(d)\nORDER BY x\nTTL d + toIntervalDay(1)\nSETTINGS index_granularity = 8192
|
CREATE TABLE test.ttl_repl2\n(\n `d` Date,\n `x` UInt32\n)\nENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/ttl_repl\', \'2\')\nPARTITION BY toDayOfMonth(d)\nORDER BY x\nTTL d + toIntervalDay(1)\nSETTINGS index_granularity = 8192
|
||||||
|
Loading…
Reference in New Issue
Block a user