v.20.3Improvement
Implement ALTER MODIFY/DROP Queries for ReplicatedMergeTree Engines
ImplementALTER MODIFY/DROPqueries on top of mutations forReplicatedMergeTree*engines family. NowALTERSblocks only at the metadata update stage, and don't block after that. #8701 (alesapin)
Why it matters
Previously,ALTER queries would block not only during the metadata update stage but also afterwards, which could impact performance and concurrency. This feature ensures that ALTER queries only block during the metadata update stage and do not block after that by leveraging mutations, improving system responsiveness and reducing interference with data operations.How to use it
Users can runALTER MODIFY and ALTER DROP queries as usual on tables with ReplicatedMergeTree* engines. The underlying implementation automatically uses mutations, so no additional user action is needed to enable or configure this behavior.