enhance: Fix case error msg after knowhere upgrade (#37339)

Previous PR: #37315

Error message updated after knowhere behavior change, this PR update
corresponding test error message.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-11-01 14:00:22 +08:00 committed by GitHub
parent 5aad000a93
commit be71b98146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ func (sd *shardDelegator) forwardL0Deletion(ctx context.Context,
}
func (sd *shardDelegator) forwardStreamingDeletion(ctx context.Context, deleteData []*DeleteData) {
// TODO add `auto` policy
// TODO @congqixia add `auto` policy
// using direct when streaming size is too large
// need some experimental data to support this policy
switch policy := paramtable.Get().QueryNodeCfg.StreamingDeltaForwardPolicy.GetValue(); policy {

View File

@ -1004,7 +1004,7 @@ func TestCreateIndexInvalidParams(t *testing.T) {
idxIvfPq := index.NewIvfPQIndex(entity.L2, 128, 7, 8)
_, err := mc.CreateIndex(ctx, client.NewCreateIndexOption(schema.CollectionName, common.DefaultFloatVecFieldName, idxIvfPq))
common.CheckErr(t, err, false, "dimension must be able to be divided by `m`")
common.CheckErr(t, err, false, "The dimension of a vector (dim) should be a multiple of the number of subquantizers (m)")
// invalid Hnsw M [1, 2048], efConstruction [1, 2147483647]
for _, invalidM := range []int{0, 2049} {