v.20.3Improvement
Now uses CREATE LIVE VIEW for temporary views instead of CREATE TEMPORARY LIVE VIEW
Now temporaryLIVE VIEWis created byCREATE LIVE VIEW name WITH TIMEOUT [42] ...instead ofCREATE TEMPORARY LIVE VIEW ..., because the previous syntax was not consistent withCREATE TEMPORARY TABLE ...#9131 (tavplubix)
Why it matters
This change improves syntax consistency in ClickHouse by aligning the creation of temporary live views with the existing syntax for temporary tables (CREATE TEMPORARY TABLE ...). It clarifies the semantics and usage patterns for temporary live views by explicitly specifying a timeout duration.How to use it
To create a temporary live view, use the statement:CREATE LIVE VIEW view_name WITH TIMEOUT 42 AS
SELECT ...Replace
42 with the desired timeout in seconds. This replaces the old syntax CREATE TEMPORARY LIVE VIEW.