This commit is contained in:
Alexander Tokmakov 2022-07-21 20:32:33 +02:00
parent 6e77155dc8
commit df39af23a1
3 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,5 @@
#include <Databases/LoadingStrictnessLevel.h>
#include <cassert>
namespace DB
{

View File

@ -49,7 +49,7 @@ def test_default_database(test_cluster):
test_cluster.ddl_check_query(
instance,
"CREATE TABLE null ON CLUSTER 'cluster2' (s String DEFAULT 'escape\t\nme') ENGINE = Null",
settings={"distributed_ddl_entry_format_version": 2}
settings={"distributed_ddl_entry_format_version": 2},
)
contents = instance.query(
@ -58,8 +58,9 @@ def test_default_database(test_cluster):
assert TSV(contents) == TSV("ch1\tdefault\nch2\ttest2\nch3\tdefault\nch4\ttest2\n")
test_cluster.ddl_check_query(
instance, "DROP TABLE IF EXISTS null ON CLUSTER cluster2",
settings={"distributed_ddl_entry_format_version": 2}
instance,
"DROP TABLE IF EXISTS null ON CLUSTER cluster2",
settings={"distributed_ddl_entry_format_version": 2},
)
test_cluster.ddl_check_query(
instance, "DROP DATABASE IF EXISTS test2 ON CLUSTER 'cluster'"

View File

@ -7,21 +7,21 @@ cluster = ClickHouseCluster(__file__)
node1 = cluster.add_instance(
"node1",
main_configs=["configs/remote_servers.xml"],
user_configs=[ "configs/settings.xml"],
user_configs=["configs/settings.xml"],
with_zookeeper=True,
macros={"shard": 1, "replica": 1, "shard_bk": 3, "replica_bk": 2},
)
node2 = cluster.add_instance(
"node2",
main_configs=["configs/remote_servers.xml"],
user_configs=[ "configs/settings.xml"],
user_configs=["configs/settings.xml"],
with_zookeeper=True,
macros={"shard": 2, "replica": 1, "shard_bk": 1, "replica_bk": 2},
)
node3 = cluster.add_instance(
"node3",
main_configs=["configs/remote_servers.xml"],
user_configs=[ "configs/settings.xml"],
user_configs=["configs/settings.xml"],
with_zookeeper=True,
macros={"shard": 3, "replica": 1, "shard_bk": 2, "replica_bk": 2},
)