```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 ((*it)->getState() != DataPartState::Active)
                {
                    addPartContributionToColumnAndSecondaryIndexSizes(*it);
                    addPartContributionToDataVolume(*it);
                    modifyPartState(it, DataPartState::Active); 
                    restored_active_part = true;
                }
                pos = (*it)->info.max_block + 1;
                restored.push_back((*it)->name);
            }
            else
                update_error(it);
        }
        else
            error = true;
        
        for (auto it = it_middle; it != data_parts_by_info.end() && part->contains(**it); ++it)
        {
            if ((*it)->info.min_block < pos)
                continue;
            if (!is_appropriate_state((*it)->getState()))
            {
                update_error(it);
                continue;
            }
            if ((*it)->info.min_block > pos)
                update_error(it);
            if ((*it)->getState() != DataPartState::Active)
            {
                addPartContributionToColumnAndSecondaryIndexSizes(*it);