```sql

create table A ( A date) Engine=MergeTree order by A TTL A+interval 1 year;

alter table A reset SETTING TTL;

show create table A;

CREATE TABLE default.A
(
    `A` Date
)
ENGINE = MergeTree
ORDER BY A
TTL A + toIntervalYear(1)
SETTINGS index_granularity = 8192
```
{
    if (!getSettings()->remove_empty_parts)
        return 0;
    size_t cleared_count = 0;
    auto parts = getDataPartsVector();
    for (const auto & part : parts)
    {
        if (part->rows_count == 0)
        {
            dropPartNoWaitNoThrow(part->name);
            ++cleared_count;
        }
    }
    return cleared_count;
}
void MergeTreeData::rename(const String & new_table_path, const StorageID & new_table_id)