diff --git a/tests/queries/0_stateless/01308_row_policy_and_trivial_count_query.sql b/tests/queries/0_stateless/01308_row_policy_and_trivial_count_query.sql index c105885cb60..cd41bb227eb 100644 --- a/tests/queries/0_stateless/01308_row_policy_and_trivial_count_query.sql +++ b/tests/queries/0_stateless/01308_row_policy_and_trivial_count_query.sql @@ -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;