ClickHouse/tests/queries/0_stateless/01359_codeql.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

3 lines
214 B
MySQL
Raw Normal View History

2020-07-04 23:39:13 +00:00
-- 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);