ClickHouse/tests/queries/0_stateless/02911_row_policy_on_cluster.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
477 B
MySQL
Raw Normal View History

2023-11-11 12:34:27 +00:00
-- Tags: no-parallel, zookeeper
2023-11-13 17:08:40 +00:00
DROP ROW POLICY IF EXISTS 02911_rowpolicy ON default.* ON CLUSTER test_shard_localhost;
DROP USER IF EXISTS 02911_user ON CLUSTER test_shard_localhost;
2023-11-11 12:34:27 +00:00
2023-11-13 17:08:40 +00:00
CREATE USER 02911_user ON CLUSTER test_shard_localhost;
CREATE ROW POLICY 02911_rowpolicy ON CLUSTER test_shard_localhost ON default.* USING 1 TO 02911_user;
2023-11-11 12:34:27 +00:00
2023-11-13 17:08:40 +00:00
DROP ROW POLICY 02911_rowpolicy ON default.* ON CLUSTER test_shard_localhost;
DROP USER 02911_user ON CLUSTER test_shard_localhost;