Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 9e1483c

Browse files
authored
enhance: Bump proto & SDK version to v2.3.4 (#644)
Signed-off-by: Congqi Xia <[email protected]>
1 parent 4f21564 commit 9e1483c

File tree

5 files changed

+295
-162
lines changed

5 files changed

+295
-162
lines changed

client/client_mock_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ const (
271271
MDescribeIndex ServiceMethod = 403
272272
MGetIndexState ServiceMethod = 404
273273
MGetIndexBuildProgress ServiceMethod = 405
274+
MAlterIndex ServiceMethod = 406
274275

275276
MCreateCredential ServiceMethod = 500
276277
MUpdateCredential ServiceMethod = 501
@@ -285,6 +286,7 @@ const (
285286
MDelete ServiceMethod = 605
286287
MQuery ServiceMethod = 606
287288
MUpsert ServiceMethod = 607
289+
MSearchV2 ServiceMethod = 608
288290

289291
MManualCompaction ServiceMethod = 700
290292
MGetCompactionState ServiceMethod = 701
@@ -1005,3 +1007,22 @@ func (m *MockServer) Upsert(ctx context.Context, req *milvuspb.UpsertRequest) (*
10051007
s, err := SuccessStatus()
10061008
return &milvuspb.MutationResult{Status: s}, err
10071009
}
1010+
1011+
func (m *MockServer) AlterIndex(ctx context.Context, req *milvuspb.AlterIndexRequest) (*commonpb.Status, error) {
1012+
f := m.GetInjection(MUpsert)
1013+
if f != nil {
1014+
r, err := f(ctx, req)
1015+
return r.(*commonpb.Status), err
1016+
}
1017+
return SuccessStatus()
1018+
}
1019+
1020+
func (m *MockServer) SearchV2(ctx context.Context, req *milvuspb.SearchRequestV2) (*milvuspb.SearchResults, error) {
1021+
f := m.GetInjection(MUpsert)
1022+
if f != nil {
1023+
r, err := f(ctx, req)
1024+
return r.(*milvuspb.SearchResults), err
1025+
}
1026+
status, err := SuccessStatus()
1027+
return &milvuspb.SearchResults{Status: status}, err
1028+
}

common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package common
22

33
const (
44
// SDKVersion const value for current version
5-
SDKVersion = `v2.3.3`
5+
SDKVersion = `v2.3.4`
66
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/go-faker/faker/v4 v4.1.0
88
github.com/golang/protobuf v1.5.2
99
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
10-
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.3
10+
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.4
1111
github.com/stretchr/testify v1.8.1
1212
github.com/tidwall/gjson v1.14.4
1313
google.golang.org/grpc v1.48.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ github.com/milvus-io/milvus-proto/go-api/v2 v2.3.2 h1:tBcKiEUcX6i3MaFYvMJO1F7R6f
161161
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.2/go.mod h1:1OIl0v5PQeNxIJhCvY+K55CBUOYDZevw9g9380u1Wek=
162162
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.3 h1:j6Ru7Lq421Ukp+XH8I+ny7dsVF2rLDLLoWpuFgoDZLM=
163163
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.3/go.mod h1:1OIl0v5PQeNxIJhCvY+K55CBUOYDZevw9g9380u1Wek=
164+
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.4 h1:HtNGcUb52ojnl+zDAZMmbHyVaTdBjzuCnnBHpb675TU=
165+
github.com/milvus-io/milvus-proto/go-api/v2 v2.3.4/go.mod h1:1OIl0v5PQeNxIJhCvY+K55CBUOYDZevw9g9380u1Wek=
164166
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
165167
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
166168
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=

0 commit comments

Comments
 (0)