Merge pull request #8318 from excitoon-favorites/replicatedalterttl

Fixed ALTER TTL for replicated tables
This commit is contained in:
alexey-milovidov 2019-12-28 06:49:42 +03:00 committed by Alexey Milovidov
parent 04f1538224
commit 00ba767f5d

View File

@ -524,7 +524,7 @@ void StorageReplicatedMergeTree::setTableStructure(ColumnsDescription new_column
if (metadata_diff.ttl_table_changed) if (metadata_diff.ttl_table_changed)
{ {
ParserExpression parser; ParserTTLExpressionList parser;
metadata.ttl_for_table_ast = parseQuery(parser, metadata_diff.new_ttl_table, 0); metadata.ttl_for_table_ast = parseQuery(parser, metadata_diff.new_ttl_table, 0);
} }
} }