Merge pull request #41023 from ClickHouse/remove-trash-3

Remove trash from config
This commit is contained in:
Alexey Milovidov 2022-09-11 09:52:45 +03:00 committed by GitHub
commit a5388affb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 13 deletions

View File

@ -6,15 +6,6 @@
<profiles>
<!-- Default settings. -->
<default>
<!-- How to choose between replicas during distributed query processing.
random - choose random replica from set of replicas with minimum number of errors
nearest_hostname - from set of replicas with minimum number of errors, choose replica
with minimum number of different symbols between replica's hostname and local hostname
(Hamming distance).
in_order - first live replica is chosen in specified order.
first_or_random - if first replica one has higher number of errors, pick a random one from replicas with minimum number of errors.
-->
<load_balancing>random</load_balancing>
</default>
<!-- Profile that allows only read queries. -->

View File

@ -374,17 +374,16 @@ def test_show_profiles():
assert instance.query("SHOW CREATE PROFILE xyz") == "CREATE SETTINGS PROFILE xyz\n"
assert (
instance.query("SHOW CREATE SETTINGS PROFILE default")
== "CREATE SETTINGS PROFILE default SETTINGS load_balancing = \\'random\\'\n"
== "CREATE SETTINGS PROFILE default\n"
)
assert (
instance.query("SHOW CREATE PROFILES")
== "CREATE SETTINGS PROFILE default SETTINGS load_balancing = \\'random\\'\n"
instance.query("SHOW CREATE PROFILES") == "CREATE SETTINGS PROFILE default\n"
"CREATE SETTINGS PROFILE readonly SETTINGS readonly = 1\n"
"CREATE SETTINGS PROFILE xyz\n"
)
expected_access = (
"CREATE SETTINGS PROFILE default SETTINGS load_balancing = \\'random\\'\n"
"CREATE SETTINGS PROFILE default\n"
"CREATE SETTINGS PROFILE readonly SETTINGS readonly = 1\n"
"CREATE SETTINGS PROFILE xyz\n"
)