Added a test

This commit is contained in:
Alexey Milovidov 2020-06-14 00:13:52 +03:00
parent 2cd82a25f5
commit a421e7e4b4
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<yandex>
<users>
<default>
<access_management>1</access_management>
</default>
</users>
</yandex>

View File

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