Skip to content

Commit e68168a

Browse files
committed
try to fix
1 parent b6f4f88 commit e68168a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tests/slo/src/jobs.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
);
3232
"""
3333

34-
QUERY_READ_QUERY_TEMPLATE = """
35-
SELECT * FROM `{}` WHERE object_id = $object_id AND object_hash = Digest::NumericHash($object_id);
36-
"""
37-
38-
QUERY_WRITE_QUERY_TEMPLATE = """
39-
UPSERT INTO `{}` (
40-
object_id, object_hash, payload_str, payload_double, payload_timestamp
41-
) VALUES (
42-
$object_id, Digest::NumericHash($object_id), $payload_str, $payload_double, $payload_timestamp
43-
);
44-
"""
34+
# QUERY_READ_QUERY_TEMPLATE = """
35+
# SELECT * FROM `{}` WHERE object_id = $object_id AND object_hash = Digest::NumericHash($object_id);
36+
# """
37+
38+
# QUERY_WRITE_QUERY_TEMPLATE = """
39+
# UPSERT INTO `{}` (
40+
# object_id, object_hash, payload_str, payload_double, payload_timestamp
41+
# ) VALUES (
42+
# $object_id, Digest::NumericHash($object_id), $payload_str, $payload_double, $payload_timestamp
43+
# );
44+
# """
4545

4646
logger = logging.getLogger(__name__)
4747

@@ -187,7 +187,7 @@ def check_result(result):
187187
def run_read_jobs_query(args, driver, tb_name, max_id, metrics):
188188
logger.info("Start read jobs over query service")
189189

190-
read_q = QUERY_READ_QUERY_TEMPLATE.format(tb_name)
190+
read_q = READ_QUERY_TEMPLATE.format(tb_name)
191191

192192
read_limiter = RateLimiter(max_calls=args.read_rps, period=1)
193193
futures = []
@@ -308,7 +308,7 @@ def check_result(result):
308308
def run_write_jobs_query(args, driver, tb_name, max_id, metrics):
309309
logger.info("Start write jobs for query service")
310310

311-
write_q = QUERY_WRITE_QUERY_TEMPLATE.format(tb_name)
311+
write_q = WRITE_QUERY_TEMPLATE.format(tb_name)
312312

313313
write_limiter = RateLimiter(max_calls=args.write_rps, period=1)
314314
row_generator = RowGenerator(max_id)

0 commit comments

Comments
 (0)