Skip to content

Commit f7709b6

Browse files
authored
Canonical results for tpc-h (#10669)
1 parent 84e990e commit f7709b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+197
-62
lines changed

ydb/library/benchmarks/gen_queries/consts.yql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $z7_35 = 7.;
2222
$z0_12 = 0.;
2323
$z1_12 = 1;
2424
$z0_0100001_12 = 0.0100001;
25-
$z0_07_12 = 0.07;
25+
$z0_06_12 = 0.06;
2626
$z0_2_12 = 0.2;
2727

2828
$round = ($x, $y) -> { return Math::Round($x, $y); };

ydb/library/benchmarks/gen_queries/consts_decimal.yql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $z7_35 = cast("7." as decimal(35,2));
2222
$z0_12 = cast(0 as decimal(12,2));
2323
$z1_12 = cast(1 as decimal(12,2));
2424
$z0_0100001_12 = cast("0.0100001" as decimal(12,2));
25-
$z0_07_12 = cast("0.07" as decimal(12,2));
25+
$z0_06_12 = cast("0.06" as decimal(12,2));
2626
$z0_2_12 = cast("0.2" as decimal(12,2));
2727

2828
$round = ($x,$y) -> {return $x;};

ydb/library/benchmarks/queries/tpch/yql/q1.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ select
1818
from
1919
{{lineitem}}
2020
where
21-
l_shipdate <= Date('1998-12-01') - Interval("P100D")
21+
l_shipdate <= Date('1998-12-01') - Interval("P90D")
2222
group by
2323
l_returnflag,
2424
l_linestatus

ydb/library/benchmarks/queries/tpch/yql/q10.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- TPC TPC-H Parameter Substitution (Version 2.17.2 build 0)
55
-- using 1680793381 as a seed to the RNG
66

7-
$border = Date("1993-12-01");
7+
$border = Date("1993-10-01");
88
$join1 = (
99
select
1010
c.c_custkey as c_custkey,

ydb/library/benchmarks/queries/tpch/yql/q11.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ join
1414
on
1515
n.n_nationkey = s.s_nationkey
1616
where
17-
n.n_name = 'CANADA'
17+
n.n_name = 'GERMANY'
1818
);
1919

2020
$j2 = (

ydb/library/benchmarks/queries/tpch/yql/q12.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ select
3535
end) as low_line_count
3636
from $join
3737
where
38-
(l_shipmode = 'MAIL' or l_shipmode = 'TRUCK')
38+
(l_shipmode = 'MAIL' or l_shipmode = 'SHIP')
3939
and l_commitdate < l_receiptdate
4040
and l_shipdate < l_commitdate
4141
and l_receiptdate >= $border

ydb/library/benchmarks/queries/tpch/yql/q13.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $orders = (
1111
from
1212
{{orders}}
1313
where
14-
o_comment NOT LIKE "%unusual%requests%"
14+
o_comment NOT LIKE "%special%requests%"
1515
);
1616
select
1717
c_count as c_count,

ydb/library/benchmarks/queries/tpch/yql/q14.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- TPC TPC-H Parameter Substitution (Version 2.17.2 build 0)
55
-- using 1680793381 as a seed to the RNG
66

7-
$border = Date("1994-08-01");
7+
$border = Date("1995-09-01");
88
select
99
$z100_35 * sum(case
1010
when p.p_type like 'PROMO%'
@@ -19,4 +19,4 @@ on
1919
l.l_partkey = p.p_partkey
2020
where
2121
l.l_shipdate >= $border
22-
and l.l_shipdate < ($border + Interval("P31D"));
22+
and l.l_shipdate < ($border + Interval("P30D"));

ydb/library/benchmarks/queries/tpch/yql/q15.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- TPC TPC-H Parameter Substitution (Version 2.17.2 build 0)
55
-- using 1680793381 as a seed to the RNG
66

7-
$border = Date("1997-03-01");
7+
$border = Date("1996-01-01");
88
$revenue0 = (
99
select
1010
l_suppkey as supplier_no,
@@ -13,7 +13,7 @@ $revenue0 = (
1313
{{lineitem}}
1414
where
1515
l_shipdate >= $border
16-
and l_shipdate < ($border + Interval("P92D"))
16+
and l_shipdate < ($border + Interval("P91D"))
1717
group by
1818
l_suppkey
1919
);

ydb/library/benchmarks/queries/tpch/yql/q16.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ join
1717
on
1818
p.p_partkey = ps.ps_partkey
1919
where
20-
p.p_brand <> 'Brand#33'
21-
and p.p_type not like 'PROMO POLISHED%'
22-
and (p.p_size = 20 or p.p_size = 27 or p.p_size = 11 or p.p_size = 45 or p.p_size = 40 or p.p_size = 41 or p.p_size = 34 or p.p_size = 36)
20+
p.p_brand <> 'Brand#45'
21+
and p.p_type not like 'MEDIUM POLISHED%'
22+
and (p.p_size = 49 or p.p_size = 14 or p.p_size = 23 or p.p_size = 45 or p.p_size = 19 or p.p_size = 3 or p.p_size = 36 or p.p_size = 9)
2323
);
2424

2525
$s = (

0 commit comments

Comments
 (0)