aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgvit <gvit@ydb.tech>2023-10-25 08:36:54 +0300
committergvit <gvit@ydb.tech>2023-10-25 08:57:50 +0300
commit9dd46bd6e77688a6e4aefd95c214901c7e26cd40 (patch)
tree85d294c1f925f02625c2fd1c85e8bf4bc0634171
parent242b7cc01eea771d0ebc4454948abed70df37d22 (diff)
downloadydb-9dd46bd6e77688a6e4aefd95c214901c7e26cd40.tar.gz
fix missed break in infinite loop KIKIMR-19753
-rw-r--r--ydb/tests/functional/clickbench/test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ydb/tests/functional/clickbench/test.py b/ydb/tests/functional/clickbench/test.py
index cdccb2a664..caf0e72cd6 100644
--- a/ydb/tests/functional/clickbench/test.py
+++ b/ydb/tests/functional/clickbench/test.py
@@ -53,6 +53,9 @@ def execute_scan_query(driver, yql_text, table_path):
while retries > 0 and not success:
retries -= 1
+ if yql_text.startswith('--'):
+ return []
+
it = driver.table_client.scan_query(yql_text)
result = []
while True:
@@ -68,6 +71,8 @@ def execute_scan_query(driver, yql_text, table_path):
if retries == 0:
raise
+ break
+
def explain_scan_query(driver, yql_text, table_path):
yql_text = yql_text.replace("$data", table_path)