Trying to resurrect https://github.com/ClickHouse/ClickHouse/pull/7533. I'd like to get this PR in if we have an agreement on syntax and general direction, after that I'll rebase actual alter functionality from above mentioned PR.