```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
```
std::swap(buf, res);
            res.clear();
            std::merge(range.begin(), range.end(), buf.begin(), buf.end(), std::back_inserter(res), LessDataPart()); /
        }
    }
    if (out_states != nullptr)
    {
        out_states->resize(res.size());
        if (require_projection_parts)
        {
            for (size_t i = 0; i < res.size(); ++i)
                (*out_states)[i] = res[i]->getParentPart()->getState();
        }
        else
        {
            for (size_t i = 0; i < res.size(); ++i)
                (*out_states)[i] = res[i]->getState();
        }
    }
    return res;
}
MergeTreeData::DataPartsVector MergeTreeData::getDataPartsVector(
    const DataPartStates & affordable_states,
    DataPartStateVector * out_states,
    bool require_projection_parts) const
{
    auto lock = lockParts();
    return getDataPartsVectorUnlocked(affordable_states, lock, out_states, require_projection_parts);
}
MergeTreeData::DataPartsVector