Drop policy on start in 01308_row_policy_and_trivial_count_query

This commit is contained in:
Azat Khuzhin 2020-08-11 08:10:00 +03:00
parent 7aa3f86ab9
commit 65e48663e7

View File

@ -4,6 +4,7 @@ CREATE TABLE t (x UInt8) ENGINE = MergeTree ORDER BY x;
INSERT INTO t VALUES (1), (2), (3);
SELECT count() FROM t;
DROP ROW POLICY IF EXISTS filter ON t;
CREATE ROW POLICY filter ON t USING (x % 2 = 1) TO ALL;
SELECT count() FROM t;
DROP ROW POLICY filter ON t;