From d3209e9cf40b087da425e112fa4ae5d71615f005 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Thu, 10 Oct 2024 18:32:43 +0800 Subject: [PATCH] fix: taosBenchmark ci failed with stmt mode --- .../taosbenchmark/json/stmt_auto_create_table.json | 2 +- .../taosbenchmark/json/taosc_auto_create_table.json | 2 +- tools/auto/stmt2Performance/json/template.json | 2 +- tools/auto/stmt2Performance/stmt2Perf.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/develop-test/5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json b/tests/develop-test/5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json index 0054d985ee..5ce0d4d87d 100644 --- a/tests/develop-test/5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json +++ b/tests/develop-test/5-taos-tools/taosbenchmark/json/stmt_auto_create_table.json @@ -63,7 +63,7 @@ "childtable_offset": 0, "insert_rows": 20, "insert_interval": 0, - "interlace_rows": 5, + "interlace_rows": 0, "disorder_ratio": 0, "disorder_range": 1000, "timestamp_step": 1, diff --git a/tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_auto_create_table.json b/tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_auto_create_table.json index bed3598bfe..1d0ec1765d 100644 --- a/tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_auto_create_table.json +++ b/tests/develop-test/5-taos-tools/taosbenchmark/json/taosc_auto_create_table.json @@ -64,7 +64,7 @@ "childtable_offset": 0, "insert_rows": 20, "insert_interval": 0, - "interlace_rows": 5, + "interlace_rows": 0, "disorder_ratio": 0, "disorder_range": 1000, "timestamp_step": 1, diff --git a/tools/auto/stmt2Performance/json/template.json b/tools/auto/stmt2Performance/json/template.json index a260adb7ba..659c5966a4 100644 --- a/tools/auto/stmt2Performance/json/template.json +++ b/tools/auto/stmt2Performance/json/template.json @@ -30,7 +30,7 @@ "insert_rows": 100000, "timestamp_step": 1, "start_timestamp": "2020-10-01 00:00:00.000", - "auto_create_table": "yes", + "auto_create_table": "no", "columns": [ { "type": "bool", "name": "bc"}, { "type": "float", "name": "fc"}, diff --git a/tools/auto/stmt2Performance/stmt2Perf.py b/tools/auto/stmt2Performance/stmt2Perf.py index 60907d3380..e7a4d5ecbe 100644 --- a/tools/auto/stmt2Performance/stmt2Perf.py +++ b/tools/auto/stmt2Performance/stmt2Perf.py @@ -281,10 +281,10 @@ def testQuery(): # INFO: Spend 6.7350 second completed total queries: 10, the QPS of all threads: 1.485 speed = None - for i in range(20, len(lines)): + for i in range(0, len(lines)): # find second real - pos = context.find("the QPS of all threads:") - context = lines[26] + context = lines[i] + pos = context.find("the QPS of all threads:") if pos == -1 : continue pos += 24