add tests

This commit is contained in:
abel-wang 2021-08-11 11:32:44 +08:00
parent 6ac4ad2920
commit b5c1ee9a8a

View File

@ -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)
);