Skip to content

Commit

Permalink
Add changes from TPC-DS v2.6.0
Browse files Browse the repository at this point in the history
With v2.6.0 the order by clause changed in the following query templates:
query6
query49
query56
query64
query75
query78
  • Loading branch information
gregrahn committed Oct 21, 2017
1 parent a732211 commit f4762bb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion query-templates/query49.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
or
store.currency_rank <= 10
)
order by 1,4,5
order by 1,4,5,2
[_LIMITC];


3 changes: 2 additions & 1 deletion query-templates/query56.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ where i_color in ('[COLOR.1]','[COLOR.2]','[COLOR.3]'))
union all
select * from ws) tmp1
group by i_item_id
order by total_sales
order by total_sales,
i_item_id
[_LIMITC];


2 changes: 1 addition & 1 deletion query-templates/query6.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
where j.i_category = i.i_category)
group by a.ca_state
having count(*) >= 10
order by cnt
order by cnt, a.ca_state
[_LIMITC];

3 changes: 2 additions & 1 deletion query-templates/query64.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ where cs1.item_sk=cs2.item_sk and
cs1.store_zip = cs2.store_zip
order by cs1.product_name
,cs1.store_name
,cs2.cnt;
,cs2.cnt
,cs2.s1;

2 changes: 1 addition & 1 deletion query-templates/query75.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ WITH all_sales AS (
AND curr_yr.d_year=[YEAR]
AND prev_yr.d_year=[YEAR]-1
AND CAST(curr_yr.sales_cnt AS DECIMAL(17,2))/CAST(prev_yr.sales_cnt AS DECIMAL(17,2))<0.9
ORDER BY sales_cnt_diff
ORDER BY sales_cnt_diff,sales_amt_diff
[_LIMITC];
2 changes: 1 addition & 1 deletion query-templates/query78.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ order by
other_chan_qty,
other_chan_wholesale_cost,
other_chan_sales_price,
round(ss_qty/(coalesce(ws_qty+cs_qty,1)),2)
ratio
[_LIMITC];

0 comments on commit f4762bb

Please sign in to comment.