v.22.3Improvement
ALTER TABLE DROP COLUMN Now Instantly Supports ALIAS Columns in MergeTree
NowALTER TABLE DROP COLUMN columnXqueries forMergeTreetable engines will work instantly whencolumnXis anALIAScolumn. Fixes #34660. #34786 (alesapin).
Why it matters
Previously, dropping anALIAS column in a MergeTree table using ALTER TABLE DROP COLUMN could be slow or cause delays. This feature makes dropping ALIAS columns instantaneous, improving usability and efficiency when modifying table schemas.How to use it
Simply use theALTER TABLE table_name DROP COLUMN alias_column_name command on a MergeTree table where the column is defined as an ALIAS. The operation will complete instantly without additional delays.