Skip to content

Fix tpcds q44 #14744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
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/q44.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ from(select *
where asceding.rnk = descending.rnk
and i1.i_item_sk=asceding.item_sk
and i2.i_item_sk=descending.item_sk
order by asceding.rnk
order by asceding.rnk, best_performing, worst_performing
limit 100;

-- end query 1 in stream 0 using template ../query_templates/query44.tpl
6 changes: 3 additions & 3 deletions ydb/library/benchmarks/queries/tpcds/yql/q44.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $avg_net_profit = (select avg(ss_net_profit) rank_col
select asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing
from(select *
from (select item_sk,rank() over (order by rank_col asc) rnk
from (select ss_item_sk item_sk,$round(avg(ss_net_profit), -2) rank_col
from (select ss_item_sk item_sk, $round(avg(ss_net_profit), -2) rank_col
from {{store_sales}} ss1
where ss_store_sk = 4
group by ss_item_sk
Expand All @@ -20,7 +20,7 @@ from(select *
cross join
(select *
from (select item_sk,rank() over (order by rank_col desc) rnk
from (select ss_item_sk item_sk,$round(avg(ss_net_profit), -2) rank_col
from (select ss_item_sk item_sk, $round(avg(ss_net_profit), -2) rank_col
from {{store_sales}} ss1
where ss_store_sk = 4
group by ss_item_sk
Expand All @@ -32,7 +32,7 @@ from(select *
where asceding.rnk = descending.rnk
and i1.i_item_sk=asceding.item_sk
and i2.i_item_sk=descending.item_sk
order by asceding.rnk
order by asceding.rnk, best_performing, worst_performing
limit 100;

-- end query 1 in stream 0 using template query44.tpl
11 changes: 11 additions & 0 deletions ydb/library/workload/tpcds/s100_canonical/q44.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
asceding.rnk,best_performing,worst_performing
1,"ablen stationesepri","pricallyantiation"
1,"barableoughtcallyought","pricallyantiation"
3,"ablecallyeingbarn stought","esen stbarablen st"
3,"oughtationationcallyoughtought","esen stbarablen st"
5,"n stantiationanti","barn steingableeseought"
6,"ationantibarantieingought","barationantieingation"
6,"eingn stationn stable","barationantieingation"
8,"antiprieingantically","eseoughtpriationpri"
8,"ationantioughteseanti","eseoughtpriationpri"
8,"oughtn stationeseought","eseoughtpriationpri"
Binary file removed ydb/library/workload/tpcds/s100_canonical/q44.result.gz
Binary file not shown.
11 changes: 11 additions & 0 deletions ydb/library/workload/tpcds/s10_canonical/q44.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
asceding.rnk,best_performing,worst_performing
1,"prieingantibarese","ableationcallyese"
2,"ationcallyn steseanti","eingcallyn stantianti"
3,"oughtantiesecallyn st","priableeingbaranti"
3,"oughtoughtableoughtpri","priableeingbaranti"
5,"antibarationbarought","oughtbarn stcallyese"
6,"ationn stablecallyese","callyablen stantieing"
6,"n stationoughtcallyation","callyablen stantieing"
8,"ableationationcallycally","ablecallypriantieing"
8,"oughtn stbaroughtn st","ablecallypriantieing"
10,"oughtcallyprioughteing","eingableoughtoughtese"
Binary file removed ydb/library/workload/tpcds/s10_canonical/q44.result.gz
Binary file not shown.
Loading