ClickHouse/tests/queries/0_stateless/01944_range_max_elements.sql
2024-05-30 19:41:08 +00:00

8 lines
308 B
SQL

SET function_range_max_elements_in_block = 10;
SELECT range(number % 3) FROM numbers(10);
SELECT range(number % 3) FROM numbers(11);
SELECT range(number % 3) FROM numbers(12); -- { serverError ARGUMENT_OUT_OF_BOUND }
SET function_range_max_elements_in_block = 12;
SELECT range(number % 3) FROM numbers(12);