mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
9 lines
355 B
Plaintext
9 lines
355 B
Plaintext
|
-- { echo }
|
||
|
|
||
|
-- Aggregate function 'avg' allows overflow with two's complement arithmetics.
|
||
|
-- This contradicts the standard SQL semantic and we are totally fine with it.
|
||
|
SELECT avg(-8000000000000000000) FROM remote('127.0.0.{1,2,3,4,5,6,7,8,9,10,11}', system.one);
|
||
|
384883669867978000
|
||
|
SELECT avg(-8000000000000000000) FROM numbers(11);
|
||
|
384883669867978000
|