mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
add tests
This commit is contained in:
parent
6ac4ad2920
commit
b5c1ee9a8a
@ -0,0 +1,36 @@
|
||||
SELECT
|
||||
1 AS max_size,
|
||||
groupArray(max_size)(col)
|
||||
FROM
|
||||
(
|
||||
SELECT 1 AS col
|
||||
UNION ALL
|
||||
SELECT 2
|
||||
);
|
||||
|
||||
WITH 1 AS max_size
|
||||
SELECT groupArray(max_size)(col)
|
||||
FROM
|
||||
(
|
||||
SELECT 1 as col
|
||||
UNION ALL
|
||||
SELECT 2
|
||||
);
|
||||
|
||||
WITH 0.1 AS level
|
||||
SELECT quantile(level)(number)
|
||||
FROM numbers(1000);
|
||||
|
||||
SELECT 0.1 AS level, quantile(level)(number)
|
||||
FROM numbers(1000);
|
||||
|
||||
WITH
|
||||
0.1 AS level,
|
||||
1 AS max_size
|
||||
SELECT groupArray(max_size)(col)
|
||||
FROM
|
||||
(
|
||||
SELECT quantile(level)(number) AS col
|
||||
FROM numbers(1000)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user