Skip to content

Commit d56b397

Browse files
authored
Merge pull request #4385 from ClickHouse/tpch-update-corr-subque
Update TPC-H docs
2 parents 88c829d + 4c3293d commit d56b397

File tree

1 file changed

+12
-18
lines changed
  • docs/getting-started/example-datasets

1 file changed

+12
-18
lines changed

docs/getting-started/example-datasets/tpch.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ ORDER BY
233233
**Q2**
234234

235235
```sql
236-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
237-
238236
SELECT
239237
s_acctbal,
240238
s_name,
@@ -281,7 +279,8 @@ ORDER BY
281279
```
282280

283281
::::note
284-
Until v25.5, the query did not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
282+
Until v25.5, the query did not work out-of-the box because scalar correlated subqueries were unsupported.
283+
Until v25.8, the query requires enabling the `allow_experimental_correlated_subqueries` setting.
285284

286285
This alternative formulation works and was verified to return the reference results.
287286

@@ -366,8 +365,6 @@ ORDER BY
366365
**Q4**
367366

368367
```sql
369-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
370-
371368
SELECT
372369
o_orderpriority,
373370
count(*) AS order_count
@@ -392,7 +389,8 @@ ORDER BY
392389
```
393390

394391
::::note
395-
Until v25.5, the query did not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
392+
Until v25.4, the query did not work out-of-the box because correlated subqueries were unsupported.
393+
Until v25.8, the query requires enabling allow_experimental_correlated_subqueries setting.
396394

397395
This alternative formulation works and was verified to return the reference results.
398396

@@ -826,8 +824,6 @@ ORDER BY
826824
**Q17**
827825

828826
```sql
829-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
830-
831827
SELECT
832828
sum(l_extendedprice) / 7.0 AS avg_yearly
833829
FROM
@@ -848,7 +844,8 @@ WHERE
848844
```
849845

850846
::::note
851-
Until v25.5, the query did not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
847+
Until v25.5, the query did not work out-of-the box because scalar correlated subqueries were unsupported.
848+
Until v25.8, the query requires enabling allow_experimental_correlated_subqueries setting.
852849

853850
This alternative formulation works and was verified to return the reference results.
854851

@@ -959,8 +956,6 @@ WHERE
959956
**Q20**
960957

961958
```sql
962-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
963-
964959
SELECT
965960
s_name,
966961
s_address
@@ -1001,14 +996,13 @@ ORDER BY
1001996
```
1002997

1003998
::::note
1004-
Until v25.5, the query did not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
999+
Until v25.5, the query did not work out-of-the box because scalar correlated subqueries were unsupported.
1000+
Until v25.8, the query requires enabling allow_experimental_correlated_subqueries setting.
10051001
::::
10061002

10071003
**Q21**
10081004

10091005
```sql
1010-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
1011-
10121006
SELECT
10131007
s_name,
10141008
count(*) AS numwait
@@ -1050,14 +1044,13 @@ ORDER BY
10501044
s_name;
10511045
```
10521046
::::note
1053-
Until v25.5, the query did not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
1047+
Until v25.4, the query did not work out-of-the box because correlated subqueries were unsupported.
1048+
Until v25.8, the query requires enabling allow_experimental_correlated_subqueries setting.
10541049
::::
10551050

10561051
**Q22**
10571052

10581053
```sql
1059-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
1060-
10611054
SELECT
10621055
cntrycode,
10631056
count(*) AS numcust,
@@ -1097,5 +1090,6 @@ ORDER BY
10971090
```
10981091

10991092
::::note
1100-
Until v25.5, the query did not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
1093+
Until v25.4, the query did not work out-of-the box because correlated subqueries were unsupported.
1094+
Until v25.8, the query requires enabling allow_experimental_correlated_subqueries setting.
11011095
::::

0 commit comments

Comments
 (0)