Skip to content

Commit 8545705

Browse files
committed
Light refactoring regarding constants in run_tpcds function
1 parent c1776bc commit 8545705

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/tpcds.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def setup_tpcds(config):
5151
def run_tpcds(config):
5252
"""TPC-DS stress test"""
5353

54+
TPC_DS_EXCLUDE_LIST = [] # actual numbers of TPC-DS tests to exclude
55+
TPC_DS_STATEMENT_TIMEOUT = 20000 # statement_timeout in ms
56+
5457
print('Preparing TPC-DS queries...')
5558
queries = []
5659
for query_file in sorted(os.listdir('tmp_stress/tpcds-result-reproduction/query_qualification/')):
@@ -61,7 +64,6 @@ def run_tpcds(config):
6164
pid = acon.get_backend_pid()
6265

6366
print('Starting TPC-DS queries...')
64-
TPC_DS_EXCLUDE_LIST = [] # actual numbers of TPC-DS tests to exclude
6567
timeout_list = []
6668
bar = progressbar.ProgressBar(max_value=len(queries))
6769
for i, query in enumerate(queries):
@@ -70,7 +72,6 @@ def run_tpcds(config):
7072
continue
7173
try:
7274
# Set query timeout to TPC_DS_STATEMENT_TIMEOUT / 1000 seconds
73-
TPC_DS_STATEMENT_TIMEOUT = 20000
7475
common.set_guc(acon, 'statement_timeout', TPC_DS_STATEMENT_TIMEOUT)
7576

7677
# run query

0 commit comments

Comments
 (0)