mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Added a test
This commit is contained in:
parent
f5072aab18
commit
65e387f1a3
6
tests/queries/0_stateless/01281_sum_nullable.reference
Normal file
6
tests/queries/0_stateless/01281_sum_nullable.reference
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
45
|
||||||
|
45
|
||||||
|
45
|
||||||
|
1
|
||||||
|
45
|
||||||
|
\N
|
6
tests/queries/0_stateless/01281_sum_nullable.sql
Normal file
6
tests/queries/0_stateless/01281_sum_nullable.sql
Normal 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);
|
Loading…
Reference in New Issue
Block a user