mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
837ff82312
CI: https://s3.amazonaws.com/clickhouse-test-reports/0/dd2ccd3b17e7c59ed9c8184f00f8dae85ee87d1f/fuzzer_astfuzzerubsan,actions//report.html
15 lines
571 B
Plaintext
15 lines
571 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.
|
|
|
|
-- AggregateFunctionAvg::add
|
|
SELECT avg(-8000000000000000000) FROM (SELECT *, 1 AS k FROM numbers(65535*2)) GROUP BY k;
|
|
63121857572613.94
|
|
-- AggregateFunctionAvg::addBatchSinglePlace
|
|
SELECT avg(-8000000000000000000) FROM numbers(65535 * 2);
|
|
63121857572613.94
|
|
-- AggregateFunctionAvg::addBatchSinglePlaceNotNull
|
|
SELECT avg(toNullable(-8000000000000000000)) FROM numbers(65535 * 2);
|
|
63121857572613.94
|