Skip to content

Commit

Permalink
Synchronize yql/pg variants: agg func (ydb-platform#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius authored Mar 22, 2024
1 parent 48e8fab commit 83f9944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ydb/library/benchmarks/queries/tpcds/yql/q29.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ select
,item.i_item_desc
,store.s_store_id
,store.s_store_name
,stddev_samp(ss_quantity) as store_sales_quantity
,stddev_samp(sr_return_quantity) as store_returns_quantity
,stddev_samp(cs_quantity) as catalog_sales_quantity
,sum(ss_quantity) as store_sales_quantity
,sum(sr_return_quantity) as store_returns_quantity
,sum(cs_quantity) as catalog_sales_quantity
from
{{store_sales}} as store_sales
cross join {{store_returns}} as store_returns
Expand Down
6 changes: 3 additions & 3 deletions ydb/library/benchmarks/queries/tpcds/yql/q35.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ select
count(*) cnt1,
avg(customer_demographics.cd_dep_count),
min(customer_demographics.cd_dep_count),
stddev_samp(customer_demographics.cd_dep_count),
sum(customer_demographics.cd_dep_count),
customer_demographics.cd_dep_employed_count,
count(*) cnt2,
avg(customer_demographics.cd_dep_employed_count),
min(customer_demographics.cd_dep_employed_count),
stddev_samp(cd_dep_employed_count),
sum(cd_dep_employed_count),
customer_demographics.cd_dep_college_count,
count(*) cnt3,
avg(customer_demographics.cd_dep_college_count),
min(customer_demographics.cd_dep_college_count),
stddev_samp(customer_demographics.cd_dep_college_count)
sum(customer_demographics.cd_dep_college_count)
from
{{customer}} c
cross join {{customer_address}} ca
Expand Down

0 comments on commit 83f9944

Please sign in to comment.