ClickHouse/tests/queries/0_stateless/02479_analyzer_aggregation_crash.sql
2022-11-11 10:51:49 +01:00

14 lines
471 B
SQL

SET allow_experimental_analyzer = 1;
SET compile_aggregate_expressions = 1;
SET min_count_to_compile_aggregate_expression = 0;
DROP TABLE IF EXISTS lc_00906__fuzz_46;
CREATE TABLE lc_00906__fuzz_46 (`b` Int64) ENGINE = MergeTree ORDER BY b;
INSERT INTO lc_00906__fuzz_46 SELECT '0123456789' FROM numbers(10);
SELECT count(3.4028234663852886e38), b FROM lc_00906__fuzz_46 GROUP BY b;
SELECT count(1), b FROM lc_00906__fuzz_46 GROUP BY b;
DROP TABLE lc_00906__fuzz_46;