Automatic style fix

This commit is contained in:
robot-clickhouse 2024-04-24 21:23:57 +00:00
parent 33b9e589c6
commit cf7dd8b86a

View File

@ -82,9 +82,19 @@ def test_skip_replicas_without_table(start_cluster):
)
node1.query("SYSTEM FLUSH LOGS")
assert ( node1.query(f"SELECT ProfileEvents['DistributedConnectionMissingTable'] FROM system.query_log WHERE type = 'QueryFinish' AND query_id IN (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND log_comment = '{log_comment}' AND type = 'QueryFinish' AND initial_query_id = query_id) SETTINGS allow_experimental_parallel_reading_from_replicas=0") == "1\n" )
assert (
node1.query(
f"SELECT ProfileEvents['DistributedConnectionMissingTable'] FROM system.query_log WHERE type = 'QueryFinish' AND query_id IN (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND log_comment = '{log_comment}' AND type = 'QueryFinish' AND initial_query_id = query_id) SETTINGS allow_experimental_parallel_reading_from_replicas=0"
)
== "1\n"
)
assert ( node1.query(f"SELECT ProfileEvents['ParallelReplicasUnavailableCount'] FROM system.query_log WHERE type = 'QueryFinish' AND query_id IN (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND log_comment = '{log_comment}' AND type = 'QueryFinish' AND initial_query_id = query_id) SETTINGS allow_experimental_parallel_reading_from_replicas=0") == "1\n" )
assert (
node1.query(
f"SELECT ProfileEvents['ParallelReplicasUnavailableCount'] FROM system.query_log WHERE type = 'QueryFinish' AND query_id IN (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND log_comment = '{log_comment}' AND type = 'QueryFinish' AND initial_query_id = query_id) SETTINGS allow_experimental_parallel_reading_from_replicas=0"
)
== "1\n"
)
def test_skip_unresponsive_replicas(start_cluster):