Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8545705

Browse files
committed
Light refactoring regarding constants in run_tpcds function
1 parentc1776bc commit8545705

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎tests/tpcds.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def setup_tpcds(config):
5151
defrun_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
forquery_fileinsorted(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
fori,queryinenumerate(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)

[8]ページ先頭

©2009-2025 Movatter.jp