Skip to content

Commit 0adcc3d

Browse files
authored
Fixes for tpcds (#7503)
1 parent 77b77cc commit 0adcc3d

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

ydb/library/benchmarks/gen_queries/consts.yql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $z0_1_35 = 0.1;
1212
$z1_2_35 = 1.2;
1313
$z0_05_35 = 0.05;
1414
$z0_9_35 = 0.9;
15+
$z0_95_35 = 0.95;
1516
$z1_1_35 = 1.1;
1617
$z0_5_35 = 0.5;
1718
$z100_35 = 100.;

ydb/library/benchmarks/gen_queries/consts_decimal.yql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $z0_1_35 = cast("0.1" as decimal(35,2));
1212
$z1_2_35 = cast("1.2" as decimal(35,2));
1313
$z0_05_35 = cast("0.05" as decimal(35,2));
1414
$z0_9_35 = cast("0.9" as decimal(35,2));
15+
$z0_95_35 = cast("0.95" as decimal(35,2));
1516
$z1_1_35 = cast("1.1" as decimal(35,2));
1617
$z0_5_35 = cast("0.5" as decimal(35,2));
1718
$z100_35 = cast(100 as decimal(35,2));

ydb/library/benchmarks/gen_queries/pragmas_scalar.yql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ pragma OrderedColumns="true";
1616

1717
pragma FilterPushdownOverJoinOptionalSide;
1818
pragma RotateJoinTree="false";
19+
pragma AnsiOptionalAs="true";

ydb/library/benchmarks/queries/tpcds/yql/q23.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $best_ss_customer =
3333
cross join {{customer}} as customer
3434
where ss_customer_sk = c_customer_sk
3535
group by customer.c_customer_sk
36-
having sum(ss_quantity*ss_sales_price) > (95/100.0) * $max_store_sales);
36+
having sum(ss_quantity*ss_sales_price) > $z0_95_35 * $max_store_sales);
3737

3838
-- start query 1 in stream 0 using template query23.tpl and seed 2031708268
3939
select sum(sales)

ydb/library/benchmarks/queries/tpcds/yql/q32.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ and cast (d_date as date) between cast('2002-03-29' as date) and
3030
(cast('2002-03-29' as date) + DateTime::IntervalFromDays(90))
3131
and d_date_sk = cs_sold_date_sk
3232
and cs_ext_discount_amt
33-
> 1.3 * adi.avg_discout
33+
> $z1_3 * adi.avg_discout
3434
limit 100;
3535

3636
-- end query 1 in stream 0 using template query32.tpl

0 commit comments

Comments
 (0)