|
240 | 240 | NumericNamespace(name="cost", value_double=0.3, op="EQUAL"),
|
241 | 241 | NumericNamespace(name="size", value_int=0, op="GREATER"),
|
242 | 242 | NumericNamespace(name="seconds", value_float=-20.5, op="LESS_EQUAL"),
|
| 243 | + NumericNamespace(name="duration", value_int=10, op="NOT_EQUAL"), |
243 | 244 | ]
|
244 | 245 | _TEST_NUMERIC_NAMESPACE = [
|
245 | 246 | match_service_pb2.NumericNamespace(name="cost", value_double=0.3, op=3),
|
246 | 247 | match_service_pb2.NumericNamespace(name="size", value_int=0, op=5),
|
247 | 248 | match_service_pb2.NumericNamespace(name="seconds", value_float=-20.5, op=2),
|
| 249 | + match_service_pb2.NumericNamespace(name="duration", value_int=10, op="NOT_EQUAL"), |
248 | 250 | ]
|
249 | 251 | _TEST_IDS = ["123", "456", "789"]
|
250 | 252 | _TEST_PER_CROWDING_ATTRIBUTE_NUM_NEIGHBOURS = 3
|
@@ -1421,6 +1423,9 @@ def test_index_public_endpoint_match_queries_with_numeric_filtering(
|
1421 | 1423 | gca_index_v1beta1.IndexDatapoint.NumericRestriction(
|
1422 | 1424 | namespace="seconds", value_float=-20.5, op="LESS_EQUAL"
|
1423 | 1425 | ),
|
| 1426 | + gca_index_v1beta1.IndexDatapoint.NumericRestriction( |
| 1427 | + namespace="duration", value_int=10, op="NOT_EQUAL" |
| 1428 | + ), |
1424 | 1429 | ],
|
1425 | 1430 | ),
|
1426 | 1431 | per_crowding_attribute_neighbor_count=_TEST_PER_CROWDING_ATTRIBUTE_NUM_NEIGHBOURS,
|
|
0 commit comments