mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
3 lines
214 B
MySQL
3 lines
214 B
MySQL
|
-- In previous ClickHouse versions, the multiplications was made in a wrong type leading to overflow.
|
||
|
SELECT round(avgWeighted(x, y)) FROM (SELECT 0xFFFFFFFF AS x, 1000000000 AS y UNION ALL SELECT 1 AS x, 1 AS y);
|