mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
17 lines
538 B
SQL
17 lines
538 B
SQL
-- Tags: no-parallel
|
|
|
|
SELECT * FROM loop(numbers(3)) LIMIT 10;
|
|
SELECT * FROM loop (numbers(3)) LIMIT 10 settings max_block_size = 1;
|
|
|
|
CREATE TABLE t (n Int8) ENGINE=MergeTree ORDER BY n;
|
|
|
|
SELECT * FROM loop(t) LIMIT 15; -- { serverError TOO_MANY_RETRIES_TO_FETCH_PARTS }
|
|
|
|
INSERT INTO t SELECT * FROM numbers(10);
|
|
|
|
SELECT * FROM loop({CLICKHOUSE_DATABASE:Identifier}.t) LIMIT 15;
|
|
SELECT * FROM loop(t) LIMIT 15;
|
|
SELECT * FROM loop({CLICKHOUSE_DATABASE:Identifier}, t) LIMIT 15;
|
|
|
|
SELECT * FROM loop('', '') -- { serverError UNKNOWN_TABLE }
|