v.19.13Improvement

Throws an Exception If Config.d File Does Not Have the Corresponding Root Element as the Config File #6123 (dimarub2000)

Throws an exception if config.d file does not have the corresponding root element as the config file #6123 (dimarub2000)
Throws an exception if a configuration file in the config.d directory does not have a corresponding root element matching the main config file.

Why it matters

This feature ensures configuration consistency by validating that all .d include files have the appropriate root element. It prevents misconfiguration and runtime issues caused by improperly structured additional config files.

How to use it

Users should ensure that each file inside the config.d directory starts with the correct root element matching the main configuration file structure. If a mismatch is detected, ClickHouse will throw an exception during startup or config reload.