ClickHouse/tests/queries/0_stateless/01245_limit_infinite_sources.sql

12 lines
186 B
MySQL
Raw Normal View History

2020-04-12 15:25:51 +00:00
SELECT number
2021-05-27 21:21:02 +00:00
FROM
2020-04-12 15:25:51 +00:00
(
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