ClickHouse/tests/queries/0_stateless/02893_bad_sample_view.sql
Alexey Milovidov eac4e3e915 Add a test
2023-10-08 23:17:40 +02:00

5 lines
204 B
SQL

DROP TABLE IF EXISTS view_without_sample;
CREATE VIEW view_without_sample AS SELECT 1 AS x;
SELECT * FROM merge(currentDatabase(), '^view_without_sample$') SAMPLE 1 / 100;
DROP TABLE view_without_sample;