milvus/internal/core/unittest/test_utils
Spade A 0dc21f0aeb
feat: support random sample (#39532)
issue: #39541

This PR implements random sample, the syntax is:
```
filter="random_sample(factor)"
or 
filter="boolean_expression && random_sample(factor)"

where 
factor is a float between (0, 1) and 
boolean_expression is like
 "1 <= number < 10", "color in ["read, "blue"]" or others
```

---------

Signed-off-by: SpadeA-Tang <tangchenjie1210@gmail.com>
Signed-off-by: SpadeA <tangchenjie1210@gmail.com>
2025-02-18 12:40:50 +08:00
..
AssertUtils.h enhance: all op(Null) is false in expr (#35527) 2024-10-17 21:14:30 +08:00
Constants.h feat: [Sparse Float Vector] segcore to support sparse vector search and get raw vector by id (#30629) 2024-03-12 09:16:30 -07:00
DataGen.h feat: Enable more VECTOR_INT8 unittest (#39569) 2025-01-24 17:03:07 +08:00
Distance.h Fix search successfully with invalid metric type (#17977) 2022-07-01 22:28:23 +08:00
GenExprProto.h feat: support random sample (#39532) 2025-02-18 12:40:50 +08:00
PbHelper.h Try using ASAN in ci ut (#21089) 2022-12-29 15:29:31 +08:00
Timer.h Fix build error on mac (#16380) 2022-04-04 21:09:32 +08:00
TmpPath.h feat: support inverted index (#28783) 2023-12-31 19:50:47 +08:00
c_api_test_utils.h enhance: Use template to remove unittest duplication (#39144) 2025-01-13 09:58:57 +08:00
indexbuilder_test_utils.h enhance: Rename API GenDataset to GenFieldData in unittest (#39386) 2025-01-17 15:55:03 +08:00
storage_test_utils.h enhance: support null in c data_datacodec and load null value (#32183) 2024-07-23 16:07:51 +08:00
test_segcore.yaml Rename chunk_size to chunk_rows for better code readability (#7953) 2021-09-15 15:15:52 +08:00