Skip to content

Commit

Permalink
Update db_comparison_runner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouncner authored Jun 16, 2024
1 parent 6ab2fda commit 354c425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/db_comparison_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@
hyrise_server_path = Path(args.hyrise_server_path).expanduser().resolve()
assert (hyrise_server_path / "hyriseServer").exists(), "Please pass valid --hyrise_server_path"

monetdb_scale_factor_string = str(args.scale_factor).replace(".", "_") if float(int(args.scale_factor)) == args.scale_factor else str(int(args.scale_factor))
monetdb_scale_factor_string = str(args.scale_factor).replace(".", "_") if float(int(args.scale_factor)) != args.scale_factor else str(int(args.scale_factor))
duckdb_scale_factor_string = int(args.scale_factor) if args.scale_factor >= 1.0 else args.scale_factor

assert (args.single_query_id is None or (args.single_query_id > 0 and args.single_query_id < 23)), "Unexpected query id"
assert (args.dbms != "duckdb" or Path("{}/tpch-dbgen/sf{}/nation.tbl".format(Path.home(), duckdb_scale_factor_string)).exists()), "Expecting TPC-H dbgen data to be present under fixed path."
print(Path("{}/monetdb_farm/SF-{}".format(Path.home(), monetdb_scale_factor_string)))
assert (args.dbms != "monetdb" or Path("{}/monetdb_farm/SF-{}".format(Path.home(), monetdb_scale_factor_string)).exists()), "Expecting MonetDB farm for requested scale factor to be present under fixed path."
assert (args.benchmark != "JOB" or args.dbms in ["hyrise"]), "For now, this script supports the Join Order Benchmark only for Hyrise."
assert (args.clients == 1 or args.time >= 300), "When multiple clients are set, a shuffled run is initiated which should last at least 300s."
Expand Down

0 comments on commit 354c425

Please sign in to comment.