You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/example-datasets/tpch.md
+12-18Lines changed: 12 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,8 +233,6 @@ ORDER BY
233
233
**Q2**
234
234
235
235
```sql
236
-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
237
-
238
236
SELECT
239
237
s_acctbal,
240
238
s_name,
@@ -281,7 +279,8 @@ ORDER BY
281
279
```
282
280
283
281
::::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.
285
284
286
285
This alternative formulation works and was verified to return the reference results.
287
286
@@ -366,8 +365,6 @@ ORDER BY
366
365
**Q4**
367
366
368
367
```sql
369
-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
370
-
371
368
SELECT
372
369
o_orderpriority,
373
370
count(*) AS order_count
@@ -392,7 +389,8 @@ ORDER BY
392
389
```
393
390
394
391
::::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.
396
394
397
395
This alternative formulation works and was verified to return the reference results.
398
396
@@ -826,8 +824,6 @@ ORDER BY
826
824
**Q17**
827
825
828
826
```sql
829
-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
830
-
831
827
SELECT
832
828
sum(l_extendedprice) / 7.0 AS avg_yearly
833
829
FROM
@@ -848,7 +844,8 @@ WHERE
848
844
```
849
845
850
846
::::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.
852
849
853
850
This alternative formulation works and was verified to return the reference results.
854
851
@@ -959,8 +956,6 @@ WHERE
959
956
**Q20**
960
957
961
958
```sql
962
-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
963
-
964
959
SELECT
965
960
s_name,
966
961
s_address
@@ -1001,14 +996,13 @@ ORDER BY
1001
996
```
1002
997
1003
998
::::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.
1005
1001
::::
1006
1002
1007
1003
**Q21**
1008
1004
1009
1005
```sql
1010
-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
1011
-
1012
1006
SELECT
1013
1007
s_name,
1014
1008
count(*) AS numwait
@@ -1050,14 +1044,13 @@ ORDER BY
1050
1044
s_name;
1051
1045
```
1052
1046
::::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.
1054
1049
::::
1055
1050
1056
1051
**Q22**
1057
1052
1058
1053
```sql
1059
-
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
1060
-
1061
1054
SELECT
1062
1055
cntrycode,
1063
1056
count(*) AS numcust,
@@ -1097,5 +1090,6 @@ ORDER BY
1097
1090
```
1098
1091
1099
1092
::::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.
0 commit comments