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
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -234,6 +234,8 @@ ORDER BY
234
234
**Q2**
235
235
236
236
```sql
237
+
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
238
+
237
239
SELECT
238
240
s_acctbal,
239
241
s_name,
@@ -280,7 +282,7 @@ ORDER BY
280
282
```
281
283
282
284
::::note
283
-
As of February 2025, the query does not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
285
+
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
284
286
285
287
This alternative formulation works and was verified to return the reference results.
286
288
@@ -365,6 +367,8 @@ ORDER BY
365
367
**Q4**
366
368
367
369
```sql
370
+
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
371
+
368
372
SELECT
369
373
o_orderpriority,
370
374
count(*) AS order_count
@@ -389,7 +393,7 @@ ORDER BY
389
393
```
390
394
391
395
::::note
392
-
As of February 2025, the query does not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
396
+
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
393
397
394
398
This alternative formulation works and was verified to return the reference results.
395
399
@@ -823,6 +827,8 @@ ORDER BY
823
827
**Q17**
824
828
825
829
```sql
830
+
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
831
+
826
832
SELECT
827
833
sum(l_extendedprice) / 7.0 AS avg_yearly
828
834
FROM
@@ -843,7 +849,7 @@ WHERE
843
849
```
844
850
845
851
::::note
846
-
As of February 2025, the query does not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
852
+
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
853
848
854
This alternative formulation works and was verified to return the reference results.
849
855
@@ -954,6 +960,8 @@ WHERE
954
960
**Q20**
955
961
956
962
```sql
963
+
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
964
+
957
965
SELECT
958
966
s_name,
959
967
s_address
@@ -994,12 +1002,14 @@ ORDER BY
994
1002
```
995
1003
996
1004
::::note
997
-
As of February 2025, the query does not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
1005
+
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
998
1006
::::
999
1007
1000
1008
**Q21**
1001
1009
1002
1010
```sql
1011
+
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
1012
+
1003
1013
SELECT
1004
1014
s_name,
1005
1015
count(*) AS numwait
@@ -1041,12 +1051,14 @@ ORDER BY
1041
1051
s_name;
1042
1052
```
1043
1053
::::note
1044
-
As of February 2025, the query does not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
1054
+
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
1045
1055
::::
1046
1056
1047
1057
**Q22**
1048
1058
1049
1059
```sql
1060
+
SET allow_experimental_correlated_subqueries = 1; -- since v25.5
1061
+
1050
1062
SELECT
1051
1063
cntrycode,
1052
1064
count(*) AS numcust,
@@ -1086,5 +1098,5 @@ ORDER BY
1086
1098
```
1087
1099
1088
1100
::::note
1089
-
As of February 2025, the query does not work out-of-the box due to correlated subqueries. Corresponding issue: https://github.com/ClickHouse/ClickHouse/issues/6697
1101
+
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
0 commit comments