Skip to content

Commit fdfdbbd

Browse files
committed
Cover the exact CI fuzzer query in the regression test
Add the query shape the AST fuzzer aborted on in the `amd_msan` stress test of ClickHouse#108685 (multi-column projection with a correlated scalar subquery over a `GROUPING SETS` key under `WITH TOTALS`), scaled down and deterministic, so the regression test ties directly to the reported failure.
1 parent e48d69e commit fdfdbbd

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎tests/queries/0_stateless/04413_correlated_subquery_group_by_use_nulls.reference‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ Nullable(String)
1818
1 42
1919
2 42
2020
\N 42
21+
0 1 string: 0
22+
1 2 string: 1
23+
2 3 string: 2
24+
25+
\N \N \N

‎tests/queries/0_stateless/04413_correlated_subquery_group_by_use_nulls.sql‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ SELECT number, (SELECT 42) AS c
4444
FROM numbers(3)
4545
GROUP BY number WITH ROLLUP
4646
ORDER BY number NULLS LAST;
47+
48+
-- The exact query shape the CI AST fuzzer aborted on (https://github.com/ClickHouse/ClickHouse/pull/108685),
49+
-- scaled down and without FORMAT CSV: a multi-column projection with a correlated scalar subquery over a
50+
-- GROUPING SETS key under WITH TOTALS.
51+
SELECT number, number + 1, concat('string: ', (SELECT toString(number))) AS c
52+
FROM numbers(3)
53+
GROUP BY GROUPING SETS ((number))
54+
WITH TOTALS
55+
ORDER BY number;

0 commit comments

Comments
 (0)