diff --git a/internal/proto/milvus.proto b/internal/proto/milvus.proto index aacd9bdd68dcb4ce44eacbb5bea0d529ffa3fdd4..de86f76704f8aa4d168a4207a34c61495dec0f62 100644 --- a/internal/proto/milvus.proto +++ b/internal/proto/milvus.proto @@ -349,6 +349,7 @@ message GetPartitionStatisticsResponse { common.Status status = 1; repeated common.KeyValuePair stats = 2; } + /* * List all partitions for particular collection */ @@ -367,13 +368,23 @@ message ShowPartitionsRequest { ShowType type = 6; } +/* +* List all partitions for particular collection response. +* The returned datas are all rows, we can format to columns by therir index. +*/ message ShowPartitionsResponse { + // Contain error_code and reason common.Status status = 1; + // All partition names for this collection repeated string partition_names = 2; + // All partition ids for this collection repeated int64 partitionIDs = 3; - repeated uint64 created_timestamps = 4; // hybrid timestamps - repeated uint64 created_utc_timestamps = 5; // physical timestamps - repeated int64 inMemory_percentages = 6; // load percentage on querynode + // All hybrid timestamps + repeated uint64 created_timestamps = 4; + // All utc timestamps calculated by created_timestamps + repeated uint64 created_utc_timestamps = 5; + // Load percentage on querynode + repeated int64 inMemory_percentages = 6; } message DescribeSegmentRequest { diff --git a/internal/proto/milvuspb/milvus.pb.go b/internal/proto/milvuspb/milvus.pb.go index 039fea03e1541c5e82e51a1ebd4a5a333be338cc..62ce4dfd1dacc9d7e35192e5de12d0076728fb9f 100644 --- a/internal/proto/milvuspb/milvus.pb.go +++ b/internal/proto/milvuspb/milvus.pb.go @@ -1713,16 +1713,25 @@ func (m *ShowPartitionsRequest) GetType() ShowType { return ShowType_All } +// +// List all partitions for particular collection response. +// The returned datas are all rows, we can format to columns by therir index. type ShowPartitionsResponse struct { - Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - PartitionNames []string `protobuf:"bytes,2,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` - PartitionIDs []int64 `protobuf:"varint,3,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"` - CreatedTimestamps []uint64 `protobuf:"varint,4,rep,packed,name=created_timestamps,json=createdTimestamps,proto3" json:"created_timestamps,omitempty"` - CreatedUtcTimestamps []uint64 `protobuf:"varint,5,rep,packed,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"` - InMemoryPercentages []int64 `protobuf:"varint,6,rep,packed,name=inMemory_percentages,json=inMemoryPercentages,proto3" json:"inMemory_percentages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Contain error_code and reason + Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // All partition names for this collection + PartitionNames []string `protobuf:"bytes,2,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"` + // All partition ids for this collection + PartitionIDs []int64 `protobuf:"varint,3,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"` + // All hybrid timestamps + CreatedTimestamps []uint64 `protobuf:"varint,4,rep,packed,name=created_timestamps,json=createdTimestamps,proto3" json:"created_timestamps,omitempty"` + // All utc timestamps calculated by created_timestamps + CreatedUtcTimestamps []uint64 `protobuf:"varint,5,rep,packed,name=created_utc_timestamps,json=createdUtcTimestamps,proto3" json:"created_utc_timestamps,omitempty"` + // Load percentage on querynode + InMemoryPercentages []int64 `protobuf:"varint,6,rep,packed,name=inMemory_percentages,json=inMemoryPercentages,proto3" json:"inMemory_percentages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ShowPartitionsResponse) Reset() { *m = ShowPartitionsResponse{} }