From 6fd079a8c74a94c10c0702d3eee9ce32c381e952 Mon Sep 17 00:00:00 2001 From: Enwei Jiao Date: Thu, 6 Apr 2023 16:02:30 +0800 Subject: [PATCH] Add json & list --- go-api/milvuspb/milvus.pb.go | 46 ++++------- go-api/schemapb/schema.pb.go | 151 +++++++++++++++++++---------------- proto/schema.proto | 34 +++----- 3 files changed, 107 insertions(+), 124 deletions(-) diff --git a/go-api/milvuspb/milvus.pb.go b/go-api/milvuspb/milvus.pb.go index 65a9eea..da15ca4 100644 --- a/go-api/milvuspb/milvus.pb.go +++ b/go-api/milvuspb/milvus.pb.go @@ -376,7 +376,6 @@ func (m *DescribeAliasRequest) GetAlias() string { return "" } -// // Describe alias response type DescribeAliasResponse struct { // Response status @@ -497,7 +496,6 @@ func (m *ListAliasesRequest) GetCollectionName() string { return "" } -// // List aliases response type ListAliasesResponse struct { // Response status @@ -563,7 +561,7 @@ func (m *ListAliasesResponse) GetAliases() []string { return nil } -//* +// * // Create collection in milvus type CreateCollectionRequest struct { // Not useful for now @@ -659,7 +657,7 @@ func (m *CreateCollectionRequest) GetProperties() []*commonpb.KeyValuePair { return nil } -//* +// * // Drop collection in milvus, also will drop data in collection. type DropCollectionRequest struct { // Not useful for now @@ -719,7 +717,7 @@ func (m *DropCollectionRequest) GetCollectionName() string { return "" } -//* +// * // Alter collection in milvus type AlterCollectionRequest struct { // Not useful for now @@ -795,7 +793,7 @@ func (m *AlterCollectionRequest) GetProperties() []*commonpb.KeyValuePair { return nil } -//* +// * // Check collection exist in milvus or not. type HasCollectionRequest struct { // Not useful for now @@ -958,7 +956,7 @@ func (m *StringResponse) GetValue() string { return "" } -//* +// * // Get collection meta datas like: schema, collectionID, shards number ... type DescribeCollectionRequest struct { // Not useful for now @@ -1036,7 +1034,7 @@ func (m *DescribeCollectionRequest) GetTimeStamp() uint64 { return 0 } -//* +// * // DescribeCollection Response type DescribeCollectionResponse struct { // Contain error_code and reason @@ -1185,7 +1183,7 @@ func (m *DescribeCollectionResponse) GetProperties() []*commonpb.KeyValuePair { return nil } -//* +// * // Load collection data into query nodes, then you can do vector search on this collection. type LoadCollectionRequest struct { // Not useful for now @@ -1272,7 +1270,7 @@ func (m *LoadCollectionRequest) GetRefresh() bool { return false } -//* +// * // Release collection data from query nodes, then you can't do vector search on this collection. type ReleaseCollectionRequest struct { // Not useful for now @@ -1332,7 +1330,7 @@ func (m *ReleaseCollectionRequest) GetCollectionName() string { return "" } -//* +// * // Get statistics like row_count. // WARNING: This API is experimental and not useful for now. type GetStatisticsRequest struct { @@ -1411,7 +1409,7 @@ func (m *GetStatisticsRequest) GetGuaranteeTimestamp() uint64 { return 0 } -//* +// * // Will return statistics in stats field like [{key:"row_count",value:"1"}] // WARNING: This API is experimental and not useful for now. type GetStatisticsResponse struct { @@ -1463,7 +1461,7 @@ func (m *GetStatisticsResponse) GetStats() []*commonpb.KeyValuePair { return nil } -//* +// * // Get collection statistics like row_count. type GetCollectionStatisticsRequest struct { // Not useful for now @@ -1523,7 +1521,7 @@ func (m *GetCollectionStatisticsRequest) GetCollectionName() string { return "" } -//* +// * // Will return collection statistics in stats field like [{key:"row_count",value:"1"}] type GetCollectionStatisticsResponse struct { // Contain error_code and reason @@ -1574,7 +1572,6 @@ func (m *GetCollectionStatisticsResponse) GetStats() []*commonpb.KeyValuePair { return nil } -// // List collections type ShowCollectionsRequest struct { // Not useful for now @@ -1653,7 +1650,6 @@ func (m *ShowCollectionsRequest) GetCollectionNames() []string { return nil } -// // Return basic collection infos. type ShowCollectionsResponse struct { // Contain error_code and reason @@ -1750,7 +1746,6 @@ func (m *ShowCollectionsResponse) GetQueryServiceAvailable() []bool { return nil } -// // Create partition in created collection. type CreatePartitionRequest struct { // Not useful for now @@ -1819,7 +1814,6 @@ func (m *CreatePartitionRequest) GetPartitionName() string { return "" } -// // Drop partition in created collection. type DropPartitionRequest struct { // Not useful for now @@ -1888,7 +1882,6 @@ func (m *DropPartitionRequest) GetPartitionName() string { return "" } -// // Check if partition exist in collection or not. type HasPartitionRequest struct { // Not useful for now @@ -1957,7 +1950,6 @@ func (m *HasPartitionRequest) GetPartitionName() string { return "" } -// // Load specific partitions data of one collection into query nodes // Then you can get these data as result when you do vector search on this collection. type LoadPartitionsRequest struct { @@ -2054,7 +2046,6 @@ func (m *LoadPartitionsRequest) GetRefresh() bool { return false } -// // Release specific partitions data of one collection from query nodes. // Then you can not get these data as result when you do vector search on this collection. type ReleasePartitionsRequest struct { @@ -2124,7 +2115,6 @@ func (m *ReleasePartitionsRequest) GetPartitionNames() []string { return nil } -// // Get partition statistics like row_count. type GetPartitionStatisticsRequest struct { // Not useful for now @@ -2240,7 +2230,6 @@ func (m *GetPartitionStatisticsResponse) GetStats() []*commonpb.KeyValuePair { return nil } -// // List all partitions for particular collection type ShowPartitionsRequest struct { // Not useful for now @@ -2328,7 +2317,6 @@ 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 { @@ -2645,7 +2633,6 @@ func (m *ShowSegmentsResponse) GetSegmentIDs() []int64 { return nil } -// // Create index for vector datas type CreateIndexRequest struct { // Not useful for now @@ -2732,7 +2719,6 @@ func (m *CreateIndexRequest) GetIndexName() string { return "" } -// // Get created index information. // Current release of Milvus only supports showing latest built index. type DescribeIndexRequest struct { @@ -2811,7 +2797,6 @@ func (m *DescribeIndexRequest) GetIndexName() string { return "" } -// // Index informations type IndexDescription struct { // Index name @@ -2914,7 +2899,6 @@ func (m *IndexDescription) GetIndexStateFailReason() string { return "" } -// // Describe index response type DescribeIndexResponse struct { // Response status @@ -2965,8 +2949,7 @@ func (m *DescribeIndexResponse) GetIndexDescriptions() []*IndexDescription { return nil } -// -// Get index building progress +// Get index building progress type GetIndexBuildProgressRequest struct { // Not useful for now Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` @@ -4238,6 +4221,7 @@ func (m *VectorIDs) GetPartitionNames() []string { type VectorsArray struct { // Types that are valid to be assigned to Array: + // // *VectorsArray_IdArray // *VectorsArray_DataArray Array isVectorsArray_Array `protobuf_oneof:"array"` @@ -4384,6 +4368,7 @@ type CalcDistanceResults struct { // num(op_left)*num(op_right) distance values, "HAMMIN" return integer distance // // Types that are valid to be assigned to Array: + // // *CalcDistanceResults_IntDist // *CalcDistanceResults_FloatDist Array isCalcDistanceResults_Array `protobuf_oneof:"array"` @@ -5341,7 +5326,6 @@ func (m *GetComponentStatesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetComponentStatesRequest proto.InternalMessageInfo -// // Do load balancing operation from src_nodeID to dst_nodeID. type LoadBalanceRequest struct { Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` diff --git a/go-api/schemapb/schema.pb.go b/go-api/schemapb/schema.pb.go index c77c5f9..c449af8 100644 --- a/go-api/schemapb/schema.pb.go +++ b/go-api/schemapb/schema.pb.go @@ -21,7 +21,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -//* +// * // @brief Field data type type DataType int32 @@ -36,6 +36,8 @@ const ( DataType_Double DataType = 11 DataType_String DataType = 20 DataType_VarChar DataType = 21 + DataType_List DataType = 22 + DataType_Json DataType = 23 DataType_BinaryVector DataType = 100 DataType_FloatVector DataType = 101 ) @@ -51,6 +53,8 @@ var DataType_name = map[int32]string{ 11: "Double", 20: "String", 21: "VarChar", + 22: "List", + 23: "Json", 100: "BinaryVector", 101: "FloatVector", } @@ -66,6 +70,8 @@ var DataType_value = map[string]int32{ "Double": 11, "String": 20, "VarChar": 21, + "List": 22, + "Json": 23, "BinaryVector": 100, "FloatVector": 101, } @@ -109,7 +115,7 @@ func (FieldState) EnumDescriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{1} } -//* +// * // @brief Field schema type FieldSchema struct { FieldID int64 `protobuf:"varint,1,opt,name=fieldID,proto3" json:"fieldID,omitempty"` @@ -214,7 +220,7 @@ func (m *FieldSchema) GetState() FieldState { return FieldState_FieldCreated } -//* +// * // @brief Collection schema type CollectionSchema struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -555,6 +561,7 @@ func (m *StringArray) GetData() []string { type ScalarField struct { // Types that are valid to be assigned to Data: + // // *ScalarField_BoolData // *ScalarField_IntData // *ScalarField_LongData @@ -711,6 +718,7 @@ func (*ScalarField) XXX_OneofWrappers() []interface{} { type VectorField struct { Dim int64 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"` // Types that are valid to be assigned to Data: + // // *VectorField_FloatVector // *VectorField_BinaryVector Data isVectorField_Data `protobuf_oneof:"data"` @@ -800,6 +808,7 @@ type FieldData struct { Type DataType `protobuf:"varint,1,opt,name=type,proto3,enum=milvus.proto.schema.DataType" json:"type,omitempty"` FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` // Types that are valid to be assigned to Field: + // // *FieldData_Scalars // *FieldData_Vectors Field isFieldData_Field `protobuf_oneof:"field"` @@ -902,6 +911,7 @@ func (*FieldData) XXX_OneofWrappers() []interface{} { type IDs struct { // Types that are valid to be assigned to IdField: + // // *IDs_IntId // *IDs_StrId IdField isIDs_IdField `protobuf_oneof:"id_field"` @@ -1081,72 +1091,73 @@ func init() { func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } var fileDescriptor_1c5fb4d8cc22d66a = []byte{ - // 1062 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5f, 0x6f, 0x1b, 0x45, - 0x10, 0xf7, 0xf9, 0xfc, 0xe7, 0x6e, 0xce, 0x0d, 0xc7, 0xb6, 0xa0, 0x03, 0xa9, 0x8d, 0x6b, 0x81, - 0x64, 0x45, 0x6a, 0xa2, 0xa4, 0x50, 0x4a, 0x45, 0x05, 0x38, 0x56, 0x88, 0x15, 0x28, 0xe1, 0x82, + // 1078 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x5f, 0x6f, 0x1b, 0x45, + 0x10, 0xf7, 0xf9, 0xfc, 0xe7, 0x6e, 0xce, 0x0d, 0xc7, 0xb6, 0x94, 0x03, 0xa9, 0x8d, 0x6b, 0x81, + 0x64, 0x45, 0x6a, 0xa2, 0xa4, 0x50, 0x4a, 0x45, 0x05, 0x38, 0x56, 0x88, 0x49, 0x29, 0xe1, 0x82, 0xf2, 0xc0, 0x8b, 0xb5, 0xf6, 0x6d, 0x92, 0x55, 0xce, 0xb7, 0xc7, 0xee, 0xba, 0xc2, 0x1f, 0x80, - 0x6f, 0xc0, 0x03, 0x42, 0x3c, 0xf0, 0xcc, 0x77, 0xe2, 0x89, 0xcf, 0x81, 0x84, 0x76, 0x76, 0xfd, - 0xa7, 0x8d, 0x63, 0xe5, 0x6d, 0x76, 0x6e, 0x7e, 0xbf, 0x9b, 0xf9, 0xcd, 0xec, 0x2c, 0xb4, 0xd4, - 0xf8, 0x8a, 0x4d, 0xe8, 0x6e, 0x29, 0x85, 0x16, 0xe4, 0xfe, 0x84, 0xe7, 0xaf, 0xa7, 0xca, 0x9e, - 0x76, 0xed, 0xa7, 0x0f, 0x5b, 0x63, 0x31, 0x99, 0x88, 0xc2, 0x3a, 0x3b, 0xbf, 0xfb, 0x10, 0x1d, - 0x71, 0x96, 0x67, 0x67, 0xf8, 0x95, 0x24, 0xd0, 0xbc, 0x30, 0xc7, 0x41, 0x3f, 0xf1, 0xda, 0x5e, - 0xd7, 0x4f, 0xe7, 0x47, 0x42, 0xa0, 0x56, 0xd0, 0x09, 0x4b, 0xaa, 0x6d, 0xaf, 0x1b, 0xa6, 0x68, - 0x93, 0x8f, 0x60, 0x8b, 0xab, 0x61, 0x29, 0xf9, 0x84, 0xca, 0xd9, 0xf0, 0x9a, 0x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c, 0xe8, 0x02, 0xbd, 0x6e, 0xb4, 0xf7, 0x70, 0xad, 0x70, 0x0b, + 0x85, 0x0e, 0x2b, 0x69, 0x60, 0x20, 0x66, 0x7c, 0xc9, 0x73, 0x08, 0x78, 0xa1, 0x2d, 0xba, 0x8a, + 0xe8, 0xf5, 0xb3, 0x3e, 0x97, 0xef, 0xb0, 0x92, 0x36, 0x79, 0xa1, 0x11, 0xfb, 0x02, 0xc2, 0x5c, + 0x14, 0xe7, 0x16, 0xec, 0xdf, 0xf0, 0xea, 0x85, 0xb6, 0xe6, 0xd5, 0x06, 0x82, 0xf0, 0xaf, 0x00, + 0xce, 0x8c, 0xa6, 0x16, 0x5f, 0x43, 0xfc, 0x35, 0xe3, 0xb8, 0x90, 0xfe, 0xb0, 0x92, 0x86, 0x08, + 0x42, 0x86, 0x7d, 0x88, 0x32, 0xd4, 0xdc, 0x52, 0xd4, 0x91, 0x62, 0xfd, 0xd8, 0xac, 0xf4, 0xe6, + 0xb0, 0x92, 0x82, 0x85, 0xcd, 0x49, 0x14, 0x6a, 0x6e, 0x49, 0x1a, 0x37, 0x90, 0xac, 0xf4, 0xc6, + 0x90, 0x58, 0xd8, 0xbc, 0x96, 0x91, 0x69, 0xad, 0xe5, 0x68, 0xde, 0x50, 0xcb, 0x72, 0x02, 0x4c, + 0x2d, 0x08, 0x32, 0x0c, 0xbd, 0x86, 0xed, 0x75, 0xe7, 0x37, 0x0f, 0xa2, 0x53, 0x36, 0xd6, 0xc2, + 0xf5, 0x37, 0x06, 0x3f, 0xe3, 0x13, 0xb7, 0xff, 0x8c, 0x69, 0xf6, 0x83, 0xd5, 0xed, 0x35, 0x86, + 0xb9, 0xb6, 0xdd, 0x42, 0xb9, 0x08, 0x61, 0x96, 0x9c, 0x7c, 0x0c, 0x77, 0x46, 0xbc, 0x30, 0x9b, + 0xd2, 0xd1, 0x98, 0x06, 0xb6, 0x0e, 0x2b, 0x69, 0xcb, 0xba, 0x6d, 0xd8, 0x22, 0xad, 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, 0x35, 0x3c, 0x97, 0xe5, 0xb8, 0x17, + 0xd9, 0xaf, 0xdf, 0xb1, 0xd1, 0xf3, 0xd8, 0xfb, 0x69, 0xf7, 0x9c, 0xeb, 0x8b, 0xe9, 0xc8, 0xfc, + 0x11, 0xec, 0xd8, 0xb0, 0xc7, 0x5c, 0xcc, 0x2d, 0x14, 0x7d, 0xe7, 0x5c, 0x3c, 0xa6, 0x25, 0xdf, + 0xb1, 0xda, 0x97, 0xa3, 0x3f, 0x3d, 0xef, 0xaf, 0xea, 0xc6, 0xe0, 0xfb, 0xed, 0xef, 0x2c, 0xeb, + 0x37, 0xb2, 0x1c, 0x8f, 0x1a, 0x18, 0xfa, 0xe4, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x49, 0xee, + 0x5b, 0x10, 0xb5, 0x09, 0x00, 0x00, } diff --git a/proto/schema.proto b/proto/schema.proto index f553c69..07769bb 100644 --- a/proto/schema.proto +++ b/proto/schema.proto @@ -28,6 +28,8 @@ enum DataType { String = 20; VarChar = 21; // variable-length strings with a specified maximum length + List = 22; + Json = 23; BinaryVector = 100; FloatVector = 101; @@ -52,7 +54,8 @@ message FieldSchema { repeated common.KeyValuePair type_params = 6; repeated common.KeyValuePair index_params = 7; bool autoID = 8; - FieldState state = 9; // To keep compatible with older version, the default state is `Created`. + FieldState state = 9; // To keep compatible with older version, the default + // state is `Created`. } /** @@ -65,34 +68,20 @@ message CollectionSchema { repeated FieldSchema fields = 4; } -message BoolArray { - repeated bool data = 1; -} +message BoolArray { repeated bool data = 1; } -message IntArray { - repeated int32 data = 1; -} +message IntArray { repeated int32 data = 1; } -message LongArray { - repeated int64 data = 1; -} +message LongArray { repeated int64 data = 1; } -message FloatArray { - repeated float data = 1; -} +message FloatArray { repeated float data = 1; } -message DoubleArray { - repeated double data = 1; -} +message DoubleArray { repeated double data = 1; } // For special fields such as bigdecimal, array... -message BytesArray { - repeated bytes data = 1; -} +message BytesArray { repeated bytes data = 1; } -message StringArray { - repeated string data = 1; -} +message StringArray { repeated string data = 1; } message ScalarField { oneof data { @@ -139,4 +128,3 @@ message SearchResultData { IDs ids = 5; repeated int64 topks = 6; } -