ClickHouse/tests/queries/0_stateless/02911_row_policy_on_cluster.sql
Nikolay Degterinsky 4fdca75dab Change cluster name
2023-11-13 17:08:40 +00:00

11 lines
477 B
SQL

-- Tags: no-parallel, zookeeper
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;
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;
DROP ROW POLICY 02911_rowpolicy ON default.* ON CLUSTER test_shard_localhost;
DROP USER 02911_user ON CLUSTER test_shard_localhost;