mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
fix tests for multiply row policies on same column
This commit is contained in:
parent
e4b405716f
commit
fab1e53489
@ -1,4 +1,7 @@
|
|||||||
4
|
4
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
3
|
3
|
||||||
4
|
4
|
||||||
4
|
4
|
||||||
@ -6,3 +9,4 @@
|
|||||||
3
|
3
|
||||||
2
|
2
|
||||||
1
|
1
|
||||||
|
1
|
||||||
|
@ -10,9 +10,12 @@ SELECT count() FROM 02131_multiply_row_policies_on_same_column;
|
|||||||
|
|
||||||
|
|
||||||
CREATE ROW POLICY 02131_filter_1 ON 02131_multiply_row_policies_on_same_column USING x=1 TO ALL;
|
CREATE ROW POLICY 02131_filter_1 ON 02131_multiply_row_policies_on_same_column USING x=1 TO ALL;
|
||||||
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
|
||||||
CREATE ROW POLICY 02131_filter_2 ON 02131_multiply_row_policies_on_same_column USING x=2 TO ALL;
|
CREATE ROW POLICY 02131_filter_2 ON 02131_multiply_row_policies_on_same_column USING x=2 TO ALL;
|
||||||
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
|
||||||
CREATE ROW POLICY 02131_filter_3 ON 02131_multiply_row_policies_on_same_column USING x=3 TO ALL;
|
CREATE ROW POLICY 02131_filter_3 ON 02131_multiply_row_policies_on_same_column USING x=3 TO ALL;
|
||||||
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
|
||||||
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
|
||||||
|
|
||||||
|
|
||||||
DROP ROW POLICY 02131_filter_1 ON 02131_multiply_row_policies_on_same_column;
|
DROP ROW POLICY 02131_filter_1 ON 02131_multiply_row_policies_on_same_column;
|
||||||
@ -39,7 +42,7 @@ CREATE ROW POLICY 02131_filter_2_1 ON 02131_multiply_row_policies_on_same_column
|
|||||||
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
|
||||||
CREATE ROW POLICY 02131_filter_3_1 ON 02131_multiply_row_policies_on_same_column_1 USING x>3 AS RESTRICTIVE TO ALL;
|
CREATE ROW POLICY 02131_filter_3_1 ON 02131_multiply_row_policies_on_same_column_1 USING x>3 AS RESTRICTIVE TO ALL;
|
||||||
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
|
||||||
|
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
|
||||||
|
|
||||||
DROP TABLE 02131_multiply_row_policies_on_same_column_1;
|
DROP TABLE 02131_multiply_row_policies_on_same_column_1;
|
||||||
DROP ROW POLICY 02131_filter_1_1 ON 02131_multiply_row_policies_on_same_column_1;
|
DROP ROW POLICY 02131_filter_1_1 ON 02131_multiply_row_policies_on_same_column_1;
|
||||||
|
Loading…
Reference in New Issue
Block a user