mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix style
This commit is contained in:
parent
c6085b3eb9
commit
69f6147499
@ -4865,7 +4865,7 @@ def test_formats_errors(kafka_cluster):
|
||||
"JSONColumns",
|
||||
"JSONCompactColumns",
|
||||
"JSONColumnsWithMetadata",
|
||||
"BSONEachRow"
|
||||
"BSONEachRow",
|
||||
"Native",
|
||||
"Arrow",
|
||||
"Parquet",
|
||||
@ -4905,12 +4905,20 @@ def test_formats_errors(kafka_cluster):
|
||||
"""
|
||||
)
|
||||
|
||||
kafka_produce(kafka_cluster, format_name, ["Broken message\nBroken message\nBroken message\n"])
|
||||
kafka_produce(
|
||||
kafka_cluster,
|
||||
format_name,
|
||||
["Broken message\nBroken message\nBroken message\n"]
|
||||
)
|
||||
|
||||
attempt = 0
|
||||
num_errors = 0
|
||||
while attempt < 200:
|
||||
num_errors = int(instance.query(f"SELECT length(exceptions.text) from system.kafka_consumers where database = 'test' and table = '{table_name}'"))
|
||||
num_errors = int(
|
||||
instance.query(
|
||||
f"SELECT length(exceptions.text) from system.kafka_consumers where database = 'test' and table = '{table_name}'"
|
||||
)
|
||||
)
|
||||
if num_errors > 0:
|
||||
break
|
||||
attempt += 1
|
||||
|
Loading…
Reference in New Issue
Block a user