Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/pg/q33.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where i_category in ('Home'))
i_manufact_id
from
{{item}}
where i_category in ('Books'))
where i_category in ('Home'))
and cs_item_sk = i_item_sk
and cs_sold_date_sk = d_date_sk
and d_year = 1998
Expand Down
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/pg/q49.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ select channel, item, return_ratio, return_rank, currency_rank from
store.currency_rank <= 10
)
) a
order by 1,4,5,2
order by 1,3,4,2
limit 100;

-- end query 1 in stream 0 using template ../query_templates/query49.tpl
4 changes: 2 additions & 2 deletions ydb/library/benchmarks/queries/tpcds/pg/q64.sql
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ where cs1.item_sk=cs2.item_sk and
order by cs1.product_name
,cs1.store_name
,cs2_cnt
,cs1.s1
,cs2.s1;
,s11
,s21;

-- end query 1 in stream 0 using template ../query_templates/query64.tpl
4 changes: 2 additions & 2 deletions ydb/library/benchmarks/queries/tpcds/pg/q66.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ select
and ws_sold_date_sk = d_date_sk
and ws_sold_time_sk = t_time_sk
and ws_ship_mode_sk = sm_ship_mode_sk
and d_year = 2002
and t_time between 49530 and 49530+28800
and d_year = 2001
and t_time between 9453 and 9453+28800
and sm_carrier in ('MSC','GERMA')
group by
w_warehouse_name
Expand Down
6 changes: 3 additions & 3 deletions ydb/library/benchmarks/queries/tpcds/pg/q74.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ with year_total as (
,c_first_name customer_first_name
,c_last_name customer_last_name
,d_year as year
,max(ss_net_paid) year_total
,sum(ss_net_paid) year_total
,'s' sale_type
from {{customer}}
,{{store_sales}}
Expand All @@ -22,7 +22,7 @@ with year_total as (
,c_first_name customer_first_name
,c_last_name customer_last_name
,d_year as year
,max(ws_net_paid) year_total
,sum(ws_net_paid) year_total
,'w' sale_type
from {{customer}}
,{{web_sales}}
Expand Down Expand Up @@ -56,7 +56,7 @@ with year_total as (
and t_w_firstyear.year_total > 0::numeric
and case when t_w_firstyear.year_total > 0::numeric then t_w_secyear.year_total / t_w_firstyear.year_total else null::numeric end
> case when t_s_firstyear.year_total > 0::numeric then t_s_secyear.year_total / t_s_firstyear.year_total else null::numeric end
order by 2 nulls first,1 nulls first,3 nulls first
order by 3 nulls first,1 nulls first,2 nulls first
limit 100;

-- end query 1 in stream 0 using template ../query_templates/query74.tpl
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/pg/q79.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ select
where store_sales.ss_sold_date_sk = date_dim.d_date_sk
and store_sales.ss_store_sk = store.s_store_sk
and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk
and (household_demographics.hd_dep_count = 8 or household_demographics.hd_vehicle_count > 0)
and (household_demographics.hd_dep_count = 0 or household_demographics.hd_vehicle_count > 3)
and date_dim.d_dow = 1
and date_dim.d_year in (1998,1998+1,1998+2)
and store.s_number_employees between 200 and 295
Expand Down
6 changes: 3 additions & 3 deletions ydb/library/benchmarks/queries/tpcds/pg/q80.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with ssr as
{{promotion}}
where cs_sold_date_sk = d_date_sk
and d_date between cast('2002-08-06' as date)
and (cast('2000-08-06' as date) + interval '30' day)::date
and (cast('2002-08-06' as date) + interval '30' day)::date
and cs_catalog_page_sk = cp_catalog_page_sk
and cs_item_sk = i_item_sk
and i_current_price > 50::numeric
Expand Down Expand Up @@ -90,8 +90,8 @@ group by web_site_id)
from wsr
) x
group by rollup (channel, id)
order by channel
,id
order by channel nulls first
,id nulls first
limit 100;

-- end query 1 in stream 0 using template ../query_templates/query80.tpl
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/pg/q82.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ select i_item_id
,i_item_desc
,i_current_price
from {{item}}, {{inventory}}, {{date_dim}}, {{store_sales}}
where i_current_price between 30::numeric and (30+30)::numeric
where i_current_price between 49::numeric and (49+30)::numeric
and inv_item_sk = i_item_sk
and d_date_sk=inv_date_sk
and d_date between cast('2001-01-28' as date) and (cast('2001-01-28' as date) + interval '60' day)::date
Expand Down
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/pg/q85.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ select substr(r_reason_desc,1,20) reason
where ws_web_page_sk = wp_web_page_sk
and ws_item_sk = wr_item_sk
and ws_order_number = wr_order_number
and ws_sold_date_sk = d_date_sk and d_year = 1998
and ws_sold_date_sk = d_date_sk and d_year = 2001
and cd1.cd_demo_sk = wr_refunded_cdemo_sk
and cd2.cd_demo_sk = wr_returning_cdemo_sk
and ca_address_sk = wr_refunded_addr_sk
Expand Down
2 changes: 1 addition & 1 deletion ydb/library/benchmarks/queries/tpcds/pg/q88.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ from
and time_dim.t_minute >= 30
and ((household_demographics.hd_dep_count = 2 and household_demographics.hd_vehicle_count<=2+2) or
(household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2) or
(household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=3+2))
(household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2))
and store.s_store_name = 'ese') s7,
(select count(*) h12_to_12_30
from {{store_sales}}, {{household_demographics}} , {{time_dim}}, {{store}}
Expand Down