mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Added a test
This commit is contained in:
parent
96e8e93c64
commit
55f9ddbeb4
1
tests/queries/0_stateless/01359_codeql.reference
Normal file
1
tests/queries/0_stateless/01359_codeql.reference
Normal file
@ -0,0 +1 @@
|
||||
4294967291
|
2
tests/queries/0_stateless/01359_codeql.sql
Normal file
2
tests/queries/0_stateless/01359_codeql.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- 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);
|
Loading…
Reference in New Issue
Block a user