mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
837ff82312
CI: https://s3.amazonaws.com/clickhouse-test-reports/0/dd2ccd3b17e7c59ed9c8184f00f8dae85ee87d1f/fuzzer_astfuzzerubsan,actions//report.html
12 lines
517 B
SQL
12 lines
517 B
SQL
-- { 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;
|
|
-- AggregateFunctionAvg::addBatchSinglePlace
|
|
SELECT avg(-8000000000000000000) FROM numbers(65535 * 2);
|
|
-- AggregateFunctionAvg::addBatchSinglePlaceNotNull
|
|
SELECT avg(toNullable(-8000000000000000000)) FROM numbers(65535 * 2);
|