mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Automatic style fix
This commit is contained in:
parent
a29ded4941
commit
014608fb6b
@ -591,13 +591,21 @@ def test_cluster_table_function(started_cluster, format_version, storage_type):
|
||||
table_function_expr = get_creation_expression(
|
||||
storage_type, TABLE_NAME, started_cluster, table_function=True
|
||||
)
|
||||
select_regular = instance.query(f"SELECT * FROM {table_function_expr}").strip().split()
|
||||
select_regular = (
|
||||
instance.query(f"SELECT * FROM {table_function_expr}").strip().split()
|
||||
)
|
||||
|
||||
# Cluster Query with node1 as coordinator
|
||||
table_function_expr_cluster = get_creation_expression(
|
||||
storage_type, TABLE_NAME, started_cluster, table_function=True, run_on_cluster=True
|
||||
storage_type,
|
||||
TABLE_NAME,
|
||||
started_cluster,
|
||||
table_function=True,
|
||||
run_on_cluster=True,
|
||||
)
|
||||
select_cluster = (
|
||||
instance.query(f"SELECT * FROM {table_function_expr_cluster}").strip().split()
|
||||
)
|
||||
select_cluster = instance.query(f"SELECT * FROM {table_function_expr_cluster}").strip().split()
|
||||
|
||||
# Simple size check
|
||||
assert len(select_regular) == 600
|
||||
@ -611,7 +619,8 @@ def test_cluster_table_function(started_cluster, format_version, storage_type):
|
||||
replica.query("SYSTEM FLUSH LOGS")
|
||||
|
||||
for node_name, replica in started_cluster.instances.items():
|
||||
cluster_secondary_queries = replica.query(
|
||||
cluster_secondary_queries = (
|
||||
replica.query(
|
||||
f"""
|
||||
SELECT query, type, is_initial_query, read_rows, read_bytes FROM system.query_log
|
||||
WHERE
|
||||
@ -621,9 +630,14 @@ def test_cluster_table_function(started_cluster, format_version, storage_type):
|
||||
position(query, 'system.query_log') = 0 AND
|
||||
NOT is_initial_query
|
||||
"""
|
||||
).strip().split("\n")
|
||||
)
|
||||
.strip()
|
||||
.split("\n")
|
||||
)
|
||||
|
||||
logging.info(f"[{node_name}] cluster_secondary_queries: {cluster_secondary_queries}")
|
||||
logging.info(
|
||||
f"[{node_name}] cluster_secondary_queries: {cluster_secondary_queries}"
|
||||
)
|
||||
assert len(cluster_secondary_queries) == 1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user