From fab1e53489cf50e59dccc73162557dfd5c79e68e Mon Sep 17 00:00:00 2001 From: cmsxbc Date: Mon, 6 Dec 2021 23:28:19 +0800 Subject: [PATCH] fix tests for multiply row policies on same column --- .../02131_multiply_row_policies_on_same_column.reference | 4 ++++ .../02131_multiply_row_policies_on_same_column.sql | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.reference b/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.reference index 2ea0833e92c..5049f94bd3e 100644 --- a/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.reference +++ b/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.reference @@ -1,4 +1,7 @@ 4 +1 +2 +3 3 4 4 @@ -6,3 +9,4 @@ 3 2 1 +1 diff --git a/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.sql b/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.sql index 75fa3778797..ca02632aaca 100644 --- a/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.sql +++ b/tests/queries/0_stateless/02131_multiply_row_policies_on_same_column.sql @@ -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; +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; +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; 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; @@ -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; 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; 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;