marsewe
marsewe
## Describe the bug This is a sibling of #5938 / #5940 ("virtual catalog not stripped from `CREATE VIEW` source queries"). That fix covered `create_view`, but the **same bug still...
## Summary In self-hosted ClickHouse **cluster** mode (`cluster:` set on the gateway, non-Cloud), SQLMesh materializes full-refresh / CTAS models with a single `CREATE TABLE … AS SELECT … ON CLUSTER...
### Description When restoring a parametrised view whose DDL contains `DEFINER = ... SQL SECURITY ...` with `restore_schema_on_cluster` enabled, clickhouse-backup injects `ON CLUSTER ''` after the `SQL SECURITY` clause. ClickHouse's...