diff --git a/reproduce/customer.tblman b/reproduce/customer.tblman deleted file mode 100644 index e69de29..0000000 diff --git a/reproduce/reproduce_umbra.sh b/reproduce/reproduce_umbra.sh index 8a3e365..088ec79 100755 --- a/reproduce/reproduce_umbra.sh +++ b/reproduce/reproduce_umbra.sh @@ -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 diff --git a/reproduce/sql/q13.sql b/reproduce/sql/q13.sql new file mode 100644 index 0000000..3b3ad6d --- /dev/null +++ b/reproduce/sql/q13.sql @@ -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; diff --git a/reproduce/sql/schema.sql b/reproduce/sql/schema.sql index 2e4f601..88fd5de 100644 --- a/reproduce/sql/schema.sql +++ b/reproduce/sql/schema.sql @@ -69,7 +69,7 @@ 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) ); @@ -77,13 +77,13 @@ 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) );