@@ -79,98 +79,6 @@ DECLARE
7979 END;
8080$$ LANGUAGE plpgsql;
8181
82- -- ------------------------------------------------------------------------
83- -- ------------------------------------------------------------------------
84- --
85- -- eql_v2_encrypted < eql_v2_encrypted with ore_cllw_u64_8 index
86- --
87- -- Test data is in form '{"hello": "{one | two | three}", "n": {10 | 20 | 30} }'
88- --
89- -- Paths
90- -- $ -> bca213de9ccce676fa849ff9c4807963
91- -- $.hello -> a7cea93975ed8c01f861ccb6bd082784
92- -- $.n -> 2517068c0d1f9d4d41d2c666211f785e
93- --
94- -- --
95- DO $$
96- DECLARE
97- sv eql_v2_encrypted;
98- term eql_v2_encrypted;
99- BEGIN
100-
101- -- This extracts the data associated with the field from the test eql_v2_encrypted
102- -- json n: 30
103- sv := get_numeric_ste_vec_30()::eql_v2_encrypted;
104- -- extract the term at $.n returned as eql_v2_encrypted
105- term := sv- > ' 2517068c0d1f9d4d41d2c666211f785e' ::text ;
106-
107- -- -- -- -- $.n
108- PERFORM assert_result(
109- format(' eql_v2_encrypted <= eql_v2_encrypted with ore_cllw_u64_8 index term' ),
110- format(' SELECT e FROM encrypted WHERE e->' ' 2517068c0d1f9d4d41d2c666211f785e' ' ::text <= %L::eql_v2_encrypted' , term));
111-
112- PERFORM assert_count(
113- format(' eql_v2_encrypted <= eql_v2_encrypted with ore_cllw_u64_8 index term' ),
114- format(' SELECT e FROM encrypted WHERE e->' ' 2517068c0d1f9d4d41d2c666211f785e' ' ::text <= %L::eql_v2_encrypted' , term),
115- 3 );
116-
117- -- Check the $.hello path
118- -- Returned encrypted does not have ore_cllw_u64_8
119- -- Falls back to jsonb literal comparison
120- PERFORM assert_result(
121- format(' eql_v2_encrypted <= eql_v2_encrypted with ore_cllw_u64_8 index term' ),
122- format(' SELECT e FROM encrypted WHERE e->' ' a7cea93975ed8c01f861ccb6bd082784' ' ::text <= %L::eql_v2_encrypted' , term));
123-
124- END;
125- $$ LANGUAGE plpgsql;
126-
127-
128-
129- -- ------------------------------------------------------------------------
130- -- ------------------------------------------------------------------------
131- --
132- -- eql_v2_encrypted < eql_v2_encrypted with ore_cllw_var_8 index
133- --
134- -- Test data is in form '{"hello": "{one | two | three}", "n": {10 | 20 | 30} }'
135- --
136- -- Paths
137- -- $ -> bca213de9ccce676fa849ff9c4807963
138- -- $.hello -> a7cea93975ed8c01f861ccb6bd082784
139- -- $.n -> 2517068c0d1f9d4d41d2c666211f785e
140- --
141- -- --
142- DO $$
143- DECLARE
144- sv eql_v2_encrypted;
145- term eql_v2_encrypted;
146- BEGIN
147-
148- -- This extracts the data associated with the field from the test eql_v2_encrypted
149- -- json n: 30
150- sv := get_numeric_ste_vec_30()::eql_v2_encrypted;
151- -- extract the term at $.n returned as eql_v2_encrypted
152- term := sv- > ' a7cea93975ed8c01f861ccb6bd082784' ::text ;
153-
154- -- -- -- -- $.n
155- PERFORM assert_result(
156- format(' eql_v2_encrypted <= eql_v2_encrypted with ore_cllw_var_8 index term' ),
157- format(' SELECT e FROM encrypted WHERE e->' ' a7cea93975ed8c01f861ccb6bd082784' ' ::text <= %L::eql_v2_encrypted' , term));
158-
159- PERFORM assert_count(
160- format(' eql_v2_encrypted <= eql_v2_encrypted with ore_cllw_var_8 index term' ),
161- format(' SELECT e FROM encrypted WHERE e->' ' a7cea93975ed8c01f861ccb6bd082784' ' ::text <= %L::eql_v2_encrypted' , term),
162- 2 );
163-
164- -- -- Check the $.n path
165- -- -- Returned encrypted does not have ore_cllw_u64_8
166- -- Falls back to jsonb literal comparison
167- PERFORM assert_result(
168- format(' eql_v2_encrypted <= eql_v2_encrypted with ore_cllw_var_8 index term' ),
169- format(' SELECT e FROM encrypted WHERE e->' ' 2517068c0d1f9d4d41d2c666211f785e' ' ::text <= %L::eql_v2_encrypted' , term));
170-
171- END;
172- $$ LANGUAGE plpgsql;
173-
17482
17583
17684SELECT drop_table_with_encrypted();
0 commit comments