Skip to content

Commit

Permalink
chore: fix sql seq for benchmark report
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 20, 2024
1 parent 2f64773 commit 56b1f6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/reuse.benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
- { dataset: hits, size: Large }
- { dataset: tpch, size: Small }
- { dataset: tpch, size: Large }
- { dataset: load, size: Small }
fail-fast: true
max-parallel: 1
steps:
Expand Down
7 changes: 2 additions & 5 deletions benchmark/clickbench/update_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@

def update_results(dataset, title, url):
queries = []
for query_file in glob.glob(f"{dataset}/queries/*.sql"):
for query_file in sorted(glob.glob(f"{dataset}/queries/*.sql")):
with open(query_file, "r") as f:
queries.append(f.read())
results = []
for result_file in glob.glob(f"results/{dataset}/**/*.json", recursive=True):
logger.info(f"reading result: {result_file}...")
with open(result_file, "r") as f:
result = json.load(f)
# if dataset == "tpch":
# result["result"].insert(0, [0.01, 0.01, 0.01])
results.append(result)
results.append(json.load(f))

logger.info("loading report template %s ...", TEMPLATE_FILE)
templateLoader = FileSystemLoader(searchpath="./")
Expand Down

0 comments on commit 56b1f6e

Please sign in to comment.