fix format

This commit is contained in:
lzydmxy 2023-04-08 00:38:44 +08:00
parent b88fef12de
commit f951ff2968
2 changed files with 7 additions and 3 deletions

View File

@ -116,12 +116,16 @@ def create_some_tables(db):
node.query(
"CREATE DICTIONARY {}.d1 (n int DEFAULT 0, m int DEFAULT 1) PRIMARY KEY n "
"SOURCE(CLICKHOUSE(HOST 'localhost' PORT 9000 USER 'default' TABLE 'rmt1' PASSWORD '' DB '{}')) "
"LIFETIME(MIN 1 MAX 10) LAYOUT(FLAT()) SETTINGS(check_dictionary_primary_key = 0)".format(db, db)
"LIFETIME(MIN 1 MAX 10) LAYOUT(FLAT()) SETTINGS(check_dictionary_primary_key = 0)".format(
db, db
)
)
node.query(
"CREATE DICTIONARY {}.d2 (n int DEFAULT 0, m int DEFAULT 1) PRIMARY KEY n "
"SOURCE(CLICKHOUSE(HOST 'localhost' PORT 9000 USER 'default' TABLE 'rmt2' PASSWORD '' DB '{}')) "
"LIFETIME(MIN 1 MAX 10) LAYOUT(FLAT()) SETTINGS(check_dictionary_primary_key = 0)".format(db, db)
"LIFETIME(MIN 1 MAX 10) LAYOUT(FLAT()) SETTINGS(check_dictionary_primary_key = 0)".format(
db, db
)
)
node.query(
"CREATE TABLE {}.merge (n int) ENGINE=Merge('{}', '(mt)|(mv)')".format(db, db)

View File

@ -10,7 +10,7 @@ node = cluster.add_instance(
"configs/named_collections.xml",
],
user_configs=[
"configs/disable_check_dictionary_primary_key.xml"
"configs/disable_check_dictionary_primary_key.xml",
],
with_zookeeper=True,
)