v.21.4Improvements
Propagate Query and Session Settings for Distributed DDL Queries in ClickHouse
Propagate query and session settings for distributed DDL queries. Setdistributed_ddl_entry_format_versionto 2 to enable this. Addeddistributed_ddl_output_modesetting. Supported modes:none,throw(default),null_status_on_timeoutandnever_throw. Miscellaneous fixes and improvements forReplicateddatabase engine. #21535 (tavplubix).
Why it matters
This feature enables better control and consistency when executing distributed Data Definition Language (DDL) queries across a cluster by propagating query and session settings. It addresses issues with handling distributed DDL outputs and error reporting through configurable modes, improving the reliability and usability of distributed schema changes. The improvements to theReplicated engine enhance stability and robustness for replicated database clusters.How to use it
To enable query and session settings propagation for distributed DDL queries, set the configuration parameterdistributed_ddl_entry_format_version to 2. Adjust the behavior of distributed DDL output handling by configuring distributed_ddl_output_mode with one of the supported modes: none, throw (default), null_status_on_timeout, or never_throw. These settings can be applied in the server configuration or via session settings.