From 4248ae509a5b6ce7debe6a994b2c238cb1df2c96 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 27 Jan 2024 16:53:31 +0100 Subject: [PATCH] Support specifying settings for Distributed engine in config (like for MergeTree) Signed-off-by: Azat Khuzhin --- programs/server/config.xml | 7 +++ src/Interpreters/Context.cpp | 18 +++++++ src/Interpreters/Context.h | 2 + .../Distributed/DistributedSettings.cpp | 21 ++++++++ .../Distributed/DistributedSettings.h | 1 + src/Storages/StorageDistributed.cpp | 2 +- .../test_distributed_config/__init__.py | 0 .../configs/overrides.xml | 5 ++ .../test_distributed_config/test.py | 49 +++++++++++++++++++ 9 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 tests/integration/test_distributed_config/__init__.py create mode 100644 tests/integration/test_distributed_config/configs/overrides.xml create mode 100644 tests/integration/test_distributed_config/test.py diff --git a/programs/server/config.xml b/programs/server/config.xml index 00f20261978..ac59c1c9b82 100644 --- a/programs/server/config.xml +++ b/programs/server/config.xml @@ -1401,6 +1401,13 @@ --> + + +