opened
Felixoid
username_0
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):
- Improvement


Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

This PR implements a setting to suppress the replication consistency check for tables on a cluster. It's possible now to set `distributed_ddl_replication_check=0` and execute `ALTER materialized_view ON CLUSTER cluster_with_replicas`


Detailed description / Documentation draft:

`distributed_ddl_replication_check=0` setting will suppress replication consistency check during `ALTER materialized_view ON CLUSTER cluster_with_replicas`
Configurable ignore replication check for distributed ALTER
issue
created
Felixoid
username_0
Here's a list of remainings before `LGTM`:

- Tests in `tests/integration/test_distributed_ddl/test_replicated_alter.py`
- Documentation for `distributed_ddl_replication_check`
comment
created
Felixoid
username_0
Are failures something which my changes have caused?
comment
created
Felixoid
username_0
It's impossible to implement it with the current code. The context of a task belongs to `default` user. https://github.com/clickhouse/ClickHouse/blob/7e18138/src/Interpreters/DDLWorker.cpp#L568-L571
comment