v.20.4Improvement
Allowed Column Alteration in Non-Modifying Data Mode
Allowed to alter column in non-modifying data mode when the same type is specified. #10382 (Vladimir Chebotarev)
Why it matters
This feature enables users to perform ALTER COLUMN operations without modifying underlying data if the column type remains unchanged, improving efficiency and flexibility when managing table schemas.How to use it
Use the ALTER TABLE statement with the MODIFY COLUMN clause specifying the same column type. The operation will be allowed in non-modifying data mode, avoiding data rewriting. For example:ALTER TABLE table_name MODIFY COLUMN column_name column_type;