diff --git a/client/client_grpc_collection.go b/client/client_grpc_collection.go index b2dc02d5..cce3a332 100644 --- a/client/client_grpc_collection.go +++ b/client/client_grpc_collection.go @@ -225,6 +225,7 @@ func (c *grpcClient) DescribeCollection(ctx context.Context, collName string) (* PhysicalChannels: resp.GetPhysicalChannelNames(), VirtualChannels: resp.GetVirtualChannelNames(), ConsistencyLevel: entity.ConsistencyLevel(resp.ConsistencyLevel), + ShardNum: resp.GetShardsNum(), } collection.Name = collection.Schema.CollectionName colInfo := collInfo{ diff --git a/entity/collection.go b/entity/collection.go index bc19476d..7be69f92 100644 --- a/entity/collection.go +++ b/entity/collection.go @@ -21,6 +21,7 @@ type Collection struct { VirtualChannels []string Loaded bool ConsistencyLevel ConsistencyLevel + ShardNum int32 } // Partition represent partition meta in Milvus