ClickHouse/tests/queries/0_stateless/02915_analyzer_fuzz_5.sql
2023-11-22 12:52:23 +00:00

7 lines
383 B
SQL

set allow_experimental_analyzer=1;
SET max_block_size = 1000;
SET max_threads = 4;
SET max_rows_to_group_by = 3000, group_by_overflow_mode = 'any';
SELECT 'limit w/ GROUP BY', count(NULL), number FROM remote('127.{1,2}', view(SELECT intDiv(number, 2147483647)
AS number FROM numbers(10))) GROUP BY number WITH ROLLUP ORDER BY count() ASC, number DESC NULLS LAST SETTINGS limit = 2;