mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Merge pull request #41023 from ClickHouse/remove-trash-3
Remove trash from config
This commit is contained in:
commit
a5388affb8
@ -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. -->
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user