mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
01e1c5345a
In case you have different roles for the same user on multiple clusters, ON CLUSTER query can help to overcome some limitations. Consider the following example: - cluster_with_data, dev_user (readonly=2) - stage_cluster, dev_user (readonly=0) So when you will execute the following query from stage_cluster, it will be successfully executed, since ON CLUSTER queries has different system profile: DROP DATABASE default ON CLUSTER cluster_with_data This is not 100% safe, but at least something. Note, that right now only ON CLUSTER query it self is supported, but separate clusters are not (i.e. GRANT CLUSTER some_cluster_name TO default), since right now grants sticked to database+. v2: on_cluster_queries_require_cluster_grant v3: fix test and process flags as bit mask Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com> |
||
---|---|---|
.. | ||
config.d | ||
top_level_domains | ||
users.d | ||
client_config.xml | ||
decimals_dictionary.xml | ||
dhparam.pem | ||
executable_dictionary.xml | ||
executable_pool_dictionary.xml | ||
install.sh | ||
ints_dictionary.xml | ||
lsan_suppressions.txt | ||
README.md | ||
server.crt | ||
server.key | ||
strings_dictionary.xml | ||
test_function.xml |
ClickHouse configs for test environment
How to use
CI use these configs in all checks installing them with install.sh
script. If you want to run all tests from tests/queries/0_stateless
and test/queries/1_stateful
on your local machine you have to set up configs from this directory for your clickhouse-server
. The most simple way is to install them using install.sh
script. Other option is just copy files into your clickhouse config directory.
How to add new config
Just place file .xml
with new config into appropriate directory and add ln
command into install.sh
script. After that CI will use this config in all tests runs.