ClickHouse/tests/queries/0_stateless/02313_multiple_limits.sql
Nikolai Kochetov 32010f0ba8 Add a test.
2022-05-31 17:56:48 +00:00

26 lines
575 B
SQL

SELECT sum(x)
FROM
(
SELECT x
FROM
(
SELECT number AS x
FROM system.numbers
SETTINGS max_rows_to_read = 10, read_overflow_mode = 'break', max_block_size = 2
)
SETTINGS max_rows_to_read = 20, read_overflow_mode = 'break', max_block_size = 2
);
SELECT sum(x)
FROM
(
SELECT x
FROM
(
SELECT number AS x
FROM system.numbers
SETTINGS max_rows_to_read = 20, read_overflow_mode = 'break', max_block_size = 2
)
SETTINGS max_rows_to_read = 10, read_overflow_mode = 'break', max_block_size = 2
);