Fixed errors with ALTER MODIFY TTL.

This commit is contained in:
Vladimir Chebotarev 2020-01-07 17:48:14 +03:00
parent 614c45df16
commit 17dfea217b

View File

@ -633,6 +633,9 @@ void MergeTreeData::setTTLExpressions(const ColumnsDescription::ColumnTTLs & new
if (new_ttl_table_ast)
{
if (!only_check)
move_ttl_entries.clear();
bool seen_delete_ttl = false;
for (auto ttl_element_ptr : new_ttl_table_ast->children)
{