v.24.6New Feature
Added loop function for infinite query results in ClickHouse
Added a new table function loop to support returning query results in an infinite loop. #63452 (Sariel). This is useful for testing.Why it matters
Theloop table function enables users to generate infinite query results, which is useful for testing scenarios such as load testing or simulating continuous data streams.How to use it
Use theloop() table function in the FROM clause of your query to produce an infinite sequence of results. For example:SELECT *
FROM loop()