ClickHouse/tests/queries/0_stateless/03221_refreshable_matview_progress.sql
Yakov Olkhovskiy 90330077e5 fix test
2024-08-18 17:56:44 +00:00

21 lines
437 B
SQL

-- Tags: no-replicated-database, no-ordinary-database
set allow_experimental_refreshable_materialized_view=1;
CREATE MATERIALIZED VIEW 03221_rmv
REFRESH AFTER 10 SECOND
(
x UInt64
)
ENGINE = Memory
AS SELECT number AS x
FROM numbers(3)
UNION ALL
SELECT rand64() AS x;
SELECT sleep(2);
SELECT read_rows, total_rows, progress FROM system.view_refreshes WHERE database = currentDatabase() and view = '03221_rmv';
DROP TABLE 03221_rmv;