Skip to content

Commit

Permalink
chore(benchmark): insert result of Q0 for tpch (#13911)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Dec 4, 2023
1 parent aa7b8fd commit 4fbe41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion benchmark/clickbench/tpch/queries.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
select count(*) from lineitem;
select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 - l_discount)) as sum_disc_price, sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge, avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) as count_order from lineitem where l_shipdate <= add_days(to_date('1998-12-01'), -90) group by l_returnflag, l_linestatus order by l_returnflag, l_linestatus;
select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like '%BRASS' and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' and ps_supplycost = ( select min(ps_supplycost) from partsupp, supplier, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' ) order by s_acctbal desc, n_name, s_name, p_partkey limit 100;
select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from customer, orders, lineitem where c_mktsegment = 'BUILDING' and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate < to_date('1995-03-15') and l_shipdate > to_date('1995-03-15') group by l_orderkey, o_orderdate, o_shippriority order by revenue desc, o_orderdate limit 10;
Expand Down
5 changes: 4 additions & 1 deletion benchmark/clickbench/update_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def update_results(dataset, title, url):
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:
results.append(json.load(f))
result = json.load(f)
if dataset == "tpch":
result["result"].append([0.0, 0.0, 0.0])
results.append(result)

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

0 comments on commit 4fbe41d

Please sign in to comment.