v.22.4Improvement
Now Supports Metadata-Level ALTER MODIFY COLUMN for Arrays and Nullable Types
Now someALTER MODIFY COLUMNqueries forArraysandNullabletypes can be done at metadata level without mutations. For example, alter fromArray(Enum8('Option1'=1))toArray(Enum8('Option1'=1, 'Option2'=2)). #35882 (alesapin).
Why it matters
This feature addresses the need to efficiently modify complex column types such as arrays and nullable fields without triggering expensive data mutations, thus improving the speed and reducing the resource consumption of schema changes.How to use it
Users can executeALTER TABLE ... MODIFY COLUMN statements on supported Array and Nullable columns (e.g., adding new enum values inside an Array(Enum8(...))) directly, and the change will be applied at the metadata level without running mutations.