diff --git a/dbms/src/Parsers/ASTTTLElement.cpp b/dbms/src/Parsers/ASTTTLElement.cpp index 7dc38ad92c0..c746b957b0f 100644 --- a/dbms/src/Parsers/ASTTTLElement.cpp +++ b/dbms/src/Parsers/ASTTTLElement.cpp @@ -20,7 +20,7 @@ void ASTTTLElement::formatImpl(const FormatSettings & settings, FormatState & st } else if (destination_type == TTLDestinationType::DELETE) { - settings.ostr << " DELETE"; + /// It would be better to output "DELETE" here but that will break compatibility with earlier versions. } } diff --git a/dbms/tests/queries/0_stateless/00933_alter_ttl.reference b/dbms/tests/queries/0_stateless/00933_alter_ttl.reference index 8262932df48..44ba49026a7 100644 --- a/dbms/tests/queries/0_stateless/00933_alter_ttl.reference +++ b/dbms/tests/queries/0_stateless/00933_alter_ttl.reference @@ -1,4 +1,4 @@ -CREATE TABLE default.ttl (`d` Date, `a` Int32) ENGINE = MergeTree PARTITION BY toDayOfMonth(d) ORDER BY a TTL d + toIntervalDay(1) DELETE SETTINGS index_granularity = 8192 +CREATE TABLE default.ttl (`d` Date, `a` Int32) ENGINE = MergeTree PARTITION BY toDayOfMonth(d) ORDER BY a TTL d + toIntervalDay(1) SETTINGS index_granularity = 8192 2100-10-10 3 2100-10-10 4 d Date diff --git a/dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference b/dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference index 76f44f98311..986bc6b4a24 100644 --- a/dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference +++ b/dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference @@ -1,3 +1,3 @@ 200 400 -CREATE TABLE test.ttl_repl2 (`d` Date, `x` UInt32) ENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/ttl_repl\', \'2\') PARTITION BY toDayOfMonth(d) ORDER BY x TTL d + toIntervalDay(1) DELETE SETTINGS index_granularity = 8192 +CREATE TABLE test.ttl_repl2 (`d` Date, `x` UInt32) ENGINE = ReplicatedMergeTree(\'/clickhouse/tables/test/ttl_repl\', \'2\') PARTITION BY toDayOfMonth(d) ORDER BY x TTL d + toIntervalDay(1) SETTINGS index_granularity = 8192