JDBC Driver ↔ ReplicatedMergeTree: Zero‑Downtime Schema Evolution via Online ALTER or Drop‑and‑Swap
Goal Upgrade a small Java application’s ClickHouse schema without service interruption. The application uses the official JDBC driver and a ReplicatedMergeTree table that must stay writable during the change. Constraints ALTER TABLE ADD COLUMN with a default value temporarily locks writes on the shard. Drop‑and‑swap requires a brief window where the old tabl