ClickHouse/tests/queries/0_stateless/01660_sum_ubsan.sql

4 lines
209 B
MySQL
Raw Normal View History

-- Aggregate function 'sum' allows overflow with two's complement arithmetics.
-- This contradicts the standard SQL semantic and we are totally fine with it.
SELECT sum(-8000000000000000000) FROM numbers(11);