ClickHouse/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql

13 lines
375 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS numbers_10k_log;
2015-10-30 02:29:53 +00:00
SET max_block_size = 1000;
CREATE TABLE numbers_10k_log ENGINE = Log AS SELECT number FROM system.numbers LIMIT 10000;
2015-10-30 02:29:53 +00:00
SET max_threads = 4;
SET max_rows_to_group_by = 3000, group_by_overflow_mode = 'any';
SELECT ignore(rand() AS k), ignore(max(toString(number))) FROM numbers_10k_log GROUP BY k LIMIT 1;
2015-10-30 02:29:53 +00:00
DROP TABLE numbers_10k_log;