mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
enhance: update knowhere version (#37688)
issue: #37665 #37631 #37620 #37587 #36906 knowhere has add default nlist value, so some invalid param test ut with no nlist param will be valid. Signed-off-by: xianliang.li <xianliang.li@zilliz.com>
This commit is contained in:
parent
1d06d4324b
commit
5ae347aba0
@ -14,7 +14,7 @@
|
||||
# Update KNOWHERE_VERSION for the first occurrence
|
||||
milvus_add_pkg_config("knowhere")
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "")
|
||||
set( KNOWHERE_VERSION 5935c1f )
|
||||
set( KNOWHERE_VERSION d3605fb )
|
||||
set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git")
|
||||
message(STATUS "Knowhere repo: ${GIT_REPOSITORY}")
|
||||
message(STATUS "Knowhere version: ${KNOWHERE_VERSION}")
|
||||
|
@ -2369,7 +2369,7 @@ func Test_checkTrain(t *testing.T) {
|
||||
assert.Error(t, checkTrain(f, m))
|
||||
})
|
||||
|
||||
t.Run("invalid params", func(t *testing.T) {
|
||||
t.Run("nlist test", func(t *testing.T) {
|
||||
f := &schemapb.FieldSchema{
|
||||
DataType: schemapb.DataType_FloatVector,
|
||||
IndexParams: []*commonpb.KeyValuePair{
|
||||
@ -2383,7 +2383,7 @@ func Test_checkTrain(t *testing.T) {
|
||||
common.IndexTypeKey: "IVF_FLAT",
|
||||
common.MetricTypeKey: "L2",
|
||||
}
|
||||
assert.Error(t, checkTrain(f, m))
|
||||
assert.NoError(t, checkTrain(f, m))
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -241,7 +241,6 @@ def get_index_param(request):
|
||||
|
||||
# TODO: construct invalid index params for all index types
|
||||
@pytest.fixture(params=[{"metric_type": "L3", "index_type": "IVF_FLAT"},
|
||||
{"metric_type": "L2", "index_type": "IVF_FLAT", "err_params": {"nlist": 10}},
|
||||
{"metric_type": "L2", "index_type": "IVF_FLAT", "params": {"nlist": -1}}])
|
||||
def get_invalid_index_params(request):
|
||||
yield request.param
|
||||
|
Loading…
Reference in New Issue
Block a user