ClickHouse/tests/queries/0_stateless/02911_row_policy_on_cluster.sql
2023-11-15 02:20:44 +01:00

12 lines
568 B
SQL

-- Tags: no-parallel, zookeeper, no-replicated-database
-- Tag no-replicated-database: distributed_ddl_output_mode is none
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;