mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test
This commit is contained in:
parent
2cd82a25f5
commit
a421e7e4b4
7
programs/server/users.d/access_management.xml
Normal file
7
programs/server/users.d/access_management.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<yandex>
|
||||||
|
<users>
|
||||||
|
<default>
|
||||||
|
<access_management>1</access_management>
|
||||||
|
</default>
|
||||||
|
</users>
|
||||||
|
</yandex>
|
@ -0,0 +1,3 @@
|
|||||||
|
3
|
||||||
|
2
|
||||||
|
3
|
@ -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;
|
Loading…
Reference in New Issue
Block a user