Skip to content

Commit

Permalink
Fix Reproduction Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wagjamin committed Nov 7, 2023
1 parent c5f3200 commit aef8b9d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
Empty file removed reproduce/customer.tblman
Empty file.
2 changes: 1 addition & 1 deletion reproduce/reproduce_umbra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ ! -f umbra_data/tpch_${1} ]]; then
fi

# Run queries
for q in 'q1' 'q3' 'q4' 'q6' 'q14' 'q18'
for q in 'q1' 'q3' 'q4' 'q5' 'q6' 'q13' 'q14' 'q18' 'q19' 'q_bigjoin'
do
# LLVM JIT Compilation
COMPILATIONMODE=o ${UMBRA_BIN} umbra_data/tpch_${1} `for i in $(seq 1 10); do echo sql/${q}.sql; done` | grep 'execution' > umbra_data/${q}_o_res_${1}.csv
Expand Down
20 changes: 20 additions & 0 deletions reproduce/sql/q13.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
select
c_count,
count(*) as custdist
from
(
select
c_custkey,
count(o_orderkey)
from
customer left outer join orders on
c_custkey = o_custkey
and o_comment not like '%special%requests%'
group by
c_custkey
) as c_orders (c_custkey, c_count)
group by
c_count
order by
custdist desc,
c_count desc;
6 changes: 3 additions & 3 deletions reproduce/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ create table supplier (
s_nationkey integer not null,
s_phone text not null,
s_acctbal double precision not null,
s_comment text not null,
s_comment text not null
-- primary key (s_suppkey)
);

create table nation (
n_nationkey integer not null,
n_name text not null,
n_regionkey integer not null,
n_comment text not null,
n_comment text not null
-- primary key (n_nationkey)
);

create table region (
r_regionkey integer not null,
r_name text not null,
r_comment text not null,
r_comment text not null
-- primary key (r_regionkey)
);

0 comments on commit aef8b9d

Please sign in to comment.