Commit 8fc01a4
test: expand MilvusOnlineStore integration test coverage
Adds three cases to test_retrieve_online_milvus_documents that exercise
code paths adjacent to recent MilvusOnlineStore bug fixes (#6275):
1. Empty-store query before any writes — verifies the v2 retrieval path
returns 0 rows instead of raising when the collection exists but is
empty.
2. Oversized top_k (top_k=5 on a 3-row dataset) — verifies the hit-parsing
loop handles a result set smaller than the requested top_k and returns
all available rows.
3. Cosine-metric variant via a second FeatureView with
vector_search_metric="COSINE" — verifies the cosine index path end
to end (write, index creation, retrieval).
No new imports; all types were already imported in the module.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Alex Korbonits <alex@korbonits.com>1 parent 92ffbb9 commit 8fc01a4
1 file changed
Lines changed: 63 additions & 5 deletions
Lines changed: 63 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
924 | 941 | | |
| 942 | + | |
925 | 943 | | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
| 944 | + | |
931 | 945 | | |
932 | 946 | | |
933 | 947 | | |
| |||
948 | 962 | | |
949 | 963 | | |
950 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
951 | 1009 | | |
952 | 1010 | | |
953 | 1011 | | |
| |||
0 commit comments