ClickHouse/tests/queries/0_stateless/03147_table_function_loop.sql
2024-08-07 18:19:15 +02:00

14 lines
453 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;
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 }