Added a test

This commit is contained in:
Alexey Milovidov 2020-05-18 08:03:58 +03:00
parent f5072aab18
commit 65e387f1a3
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
45
45
45
1
45
\N

View File

@ -0,0 +1,6 @@
SELECT sumKahan(toFloat64(number)) FROM numbers(10);
SELECT sumKahan(toNullable(toFloat64(number))) FROM numbers(10);
SELECT sum(toNullable(number)) FROM numbers(10);
SELECT sum(x) FROM (SELECT 1 AS x UNION ALL SELECT NULL);
SELECT sum(number) FROM numbers(10);
SELECT sum(number < 1000 ? NULL : number) FROM numbers(10);