ClickHouse/tests/queries/0_stateless/03147_table_function_loop.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
450 B
MySQL
Raw Normal View History

2024-05-28 11:48:53 +00:00
-- Tags: no-parallel
2024-05-16 13:22:54 +00:00
SELECT * FROM loop(numbers(3)) LIMIT 10;
SELECT * FROM loop (numbers(3)) LIMIT 10 settings max_block_size = 1;
DROP DATABASE IF EXISTS 03147_db;
2024-05-24 08:46:24 +00:00
CREATE DATABASE IF NOT EXISTS 03147_db;
2024-05-16 13:22:54 +00:00
CREATE TABLE 03147_db.t (n Int8) ENGINE=MergeTree ORDER BY n;
INSERT INTO 03147_db.t SELECT * FROM numbers(10);
USE 03147_db;
SELECT * FROM loop(03147_db.t) LIMIT 15;
SELECT * FROM loop(t) LIMIT 15;
SELECT * FROM loop(03147_db, t) LIMIT 15;