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