Skip to content

Commit

Permalink
TPC-DS: Schema and queries updated
Browse files Browse the repository at this point in the history
  • Loading branch information
perdelt committed Nov 6, 2024
1 parent af888be commit 2a1a6b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions experiments/tpcds/queries-tpcds.config
Original file line number Diff line number Diff line change
Expand Up @@ -10532,7 +10532,7 @@ LIMIT 100"""
},
{
'title': "TPC-DS Q85",
'query': """ select substr(r_reason_desc,1,20)
'query': """ select substr(r_reason_desc,1,20) as reason
,avg(ws_quantity) avg_ws_quantity
,avg(wr_refunded_cash) avg_wr_refunded_cash
,avg(wr_fee) avg_wr_fee
Expand Down Expand Up @@ -10831,7 +10831,7 @@ LIMIT 100""",
},
{
'title': "TPC-DS Q87",
'query': """select count(*)
'query': """select count(*) as counter
from ((select distinct c_last_name, c_first_name, d_date
from store_sales, date_dim, customer
where store_sales.ss_sold_date_sk = date_dim.d_date_sk
Expand Down Expand Up @@ -11431,7 +11431,7 @@ LIMIT 100""",
},
{
'title': "TPC-DS Q96",
'query': """ select count(*)
'query': """ select count(*) counter
from store_sales
,household_demographics
,time_dim, store
Expand Down Expand Up @@ -11583,7 +11583,7 @@ LIMIT 100""",
,i_class
,i_current_price
,sum(ss_ext_sales_price) as itemrevenue
,sum(ss_ext_sales_price)*100/sum(sum(ss_ext_sales_price)) over
,sum(ss_ext_sales_price)*100./sum(sum(ss_ext_sales_price)) over
(partition by i_class) as revenueratio
from
store_sales
Expand Down Expand Up @@ -11646,7 +11646,7 @@ LIMIT 100""",
{
'title': "TPC-DS Q99",
'query': """select
substr(w_warehouse_name,1,20)
substr(w_warehouse_name,1,20) as warehouse_name
,sm_type
,cc_name
,sum(case when (cs_ship_date_sk - cs_sold_date_sk <= 30 ) then 1 else 0 end) as "30 days"
Expand Down

0 comments on commit 2a1a6b1

Please sign in to comment.