mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
7 lines
322 B
MySQL
7 lines
322 B
MySQL
|
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);
|