mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
fix style (2)
This commit is contained in:
parent
94e2a9cc43
commit
c4fc7a1bac
@ -161,13 +161,21 @@ def test_push_role_to_other_nodes(ldap_cluster):
|
|||||||
"select currentUser()", user="johndoe", password="qwertz"
|
"select currentUser()", user="johndoe", password="qwertz"
|
||||||
) == TSV([["johndoe"]])
|
) == TSV([["johndoe"]])
|
||||||
|
|
||||||
instance1.query("CREATE TABLE IF NOT EXISTS local_table (id UInt32) ENGINE = MergeTree() ORDER BY id")
|
instance1.query(
|
||||||
instance2.query("CREATE TABLE IF NOT EXISTS local_table (id UInt32) ENGINE = MergeTree() ORDER BY id")
|
"CREATE TABLE IF NOT EXISTS local_table (id UInt32) ENGINE = MergeTree() ORDER BY id"
|
||||||
|
)
|
||||||
|
instance2.query(
|
||||||
|
"CREATE TABLE IF NOT EXISTS local_table (id UInt32) ENGINE = MergeTree() ORDER BY id"
|
||||||
|
)
|
||||||
instance2.query("INSERT INTO local_table VALUES (1), (2), (3)")
|
instance2.query("INSERT INTO local_table VALUES (1), (2), (3)")
|
||||||
instance1.query("CREATE TABLE IF NOT EXISTS distributed_table AS local_table ENGINE = Distributed(test_ldap_cluster, default, local_table)")
|
instance1.query(
|
||||||
|
"CREATE TABLE IF NOT EXISTS distributed_table AS local_table ENGINE = Distributed(test_ldap_cluster, default, local_table)"
|
||||||
|
)
|
||||||
|
|
||||||
result = instance1.query("SELECT sum(id) FROM distributed_table", user="johndoe", password="qwertz")
|
result = instance1.query(
|
||||||
assert result.strip() == '6'
|
"SELECT sum(id) FROM distributed_table", user="johndoe", password="qwertz"
|
||||||
|
)
|
||||||
|
assert result.strip() == "6"
|
||||||
|
|
||||||
instance1.query("DROP TABLE IF EXISTS distributed_table SYNC")
|
instance1.query("DROP TABLE IF EXISTS distributed_table SYNC")
|
||||||
instance1.query("DROP TABLE IF EXISTS local_table SYNC")
|
instance1.query("DROP TABLE IF EXISTS local_table SYNC")
|
||||||
|
Loading…
Reference in New Issue
Block a user