Add tests for 46628

This commit is contained in:
Raúl Marín 2023-12-13 13:14:00 +01:00
parent 8c2137e0c6
commit 090d412d7c
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,2 @@
45 1
processed 99 0

View File

@ -0,0 +1,23 @@
-- https://github.com/ClickHouse/ClickHouse/issues/46628
DROP TABLE IF EXISTS t;
CREATE TABLE t
(
`n` int
)
ENGINE = MergeTree
ORDER BY n AS
SELECT *
FROM numbers(10);
SELECT
sum(n),
1 AS x
FROM t
GROUP BY x;
SELECT
'processed' AS type,
max(number) AS max_date,
min(number) AS min_date
FROM numbers(100)
GROUP BY type;