Add test for ROW POLICY ON CLUSTER

This commit is contained in:
Nikolay Degterinsky 2023-11-11 12:34:27 +00:00
parent e33dc02c8c
commit a1abf3202e
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,6 @@
localhost 9000 0 0 0
localhost 9000 0 0 0
localhost 9000 0 0 0
localhost 9000 0 0 0
localhost 9000 0 0 0
localhost 9000 0 0 0

View File

@ -0,0 +1,10 @@
-- Tags: no-parallel, zookeeper
DROP ROW POLICY IF EXISTS 02911_rowpolicy ON default.* ON CLUSTER default;
DROP USER IF EXISTS 02911_user ON CLUSTER default;
CREATE USER 02911_user ON CLUSTER default;
CREATE ROW POLICY 02911_rowpolicy ON CLUSTER default ON default.* USING 1 TO 02911_user;
DROP ROW POLICY 02911_rowpolicy ON default.* ON CLUSTER default;
DROP USER 02911_user ON CLUSTER default;