mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
More clear test
This commit is contained in:
parent
6253e9b97b
commit
d113a1cde7
@ -19,7 +19,7 @@ def start_cluster():
|
||||
finally:
|
||||
cluster.shutdown()
|
||||
|
||||
def create_tables(**dist_settings):
|
||||
def create_tables():
|
||||
n1.query('DROP TABLE IF EXISTS data')
|
||||
n2.query('DROP TABLE IF EXISTS data')
|
||||
n1.query('DROP TABLE IF EXISTS dist')
|
||||
@ -34,10 +34,10 @@ def create_tables(**dist_settings):
|
||||
data,
|
||||
rand()
|
||||
)
|
||||
""", settings=dist_settings)
|
||||
""")
|
||||
|
||||
def insert_data(**settings):
|
||||
create_tables(**settings)
|
||||
create_tables()
|
||||
n1.query('INSERT INTO dist SELECT * FROM numbers(10)', settings=settings)
|
||||
n1.query('SYSTEM FLUSH DISTRIBUTED dist')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user