DB::Exception: Cannot alter column 'col' because it is used in the primary key
Attempting to Modify a Primary Key Column When executing ALTER TABLE t MODIFY COLUMN col TYPE String on a MergeTree‑family table that already defines col in its primary key, ClickHouse throws the error DB::Exception: Cannot alter column 'col' because it is used in the primary key . The operation is rejected before any data mutation occurs. Constraints and Un