mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Add tests for 46628
This commit is contained in:
parent
8c2137e0c6
commit
090d412d7c
@ -0,0 +1,2 @@
|
||||
45 1
|
||||
processed 99 0
|
@ -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;
|
Loading…
Reference in New Issue
Block a user