ClickHouse/tests/queries/0_stateless/01245_limit_infinite_sources.sql
Nikolai Kochetov 2b052a44d9 Added test
2020-04-12 18:25:51 +03:00

12 lines
187 B
SQL

SELECT number
FROM
(
SELECT zero AS number
FROM remote('127.0.0.2', system.zeros)
UNION ALL
SELECT number + sleep(0.5)
FROM system.numbers
)
WHERE number = 1
LIMIT 1