From 675e25299123bc4f47b666d4676d0da506925f5f Mon Sep 17 00:00:00 2001 From: xige-16 Date: Tue, 9 May 2023 11:15:42 +0800 Subject: [PATCH] Support logic partition Signed-off-by: xige-16 --- go-api/schemapb/schema.pb.go | 173 +++++++++++++++++++---------------- proto/schema.proto | 2 + 2 files changed, 97 insertions(+), 78 deletions(-) diff --git a/go-api/schemapb/schema.pb.go b/go-api/schemapb/schema.pb.go index 8020dfe..16abffd 100644 --- a/go-api/schemapb/schema.pb.go +++ b/go-api/schemapb/schema.pb.go @@ -130,6 +130,8 @@ type FieldSchema struct { // state is `Created`. ElementType DataType `protobuf:"varint,10,opt,name=element_type,json=elementType,proto3,enum=milvus.proto.schema.DataType" json:"element_type,omitempty"` DefaultValue *ValueField `protobuf:"bytes,11,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + IsPartitionKey bool `protobuf:"varint,12,opt,name=is_partition_key,json=isPartitionKey,proto3" json:"is_partition_key,omitempty"` + Partitions int64 `protobuf:"varint,13,opt,name=partitions,proto3" json:"partitions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -237,6 +239,20 @@ func (m *FieldSchema) GetDefaultValue() *ValueField { return nil } +func (m *FieldSchema) GetIsPartitionKey() bool { + if m != nil { + return m.IsPartitionKey + } + return false +} + +func (m *FieldSchema) GetPartitions() int64 { + if m != nil { + return m.Partitions + } + return 0 +} + //* // @brief Collection schema type CollectionSchema struct { @@ -664,7 +680,6 @@ func (m *JSONArray) GetData() [][]byte { type ValueField struct { // Types that are valid to be assigned to Data: - // // *ValueField_BoolData // *ValueField_IntData // *ValueField_LongData @@ -1379,83 +1394,85 @@ func init() { func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } var fileDescriptor_1c5fb4d8cc22d66a = []byte{ - // 1240 bytes of a gzipped FileDescriptorProto + // 1273 bytes of a gzipped FileDescriptorProto 0x1f, 0x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, 0x6f, 0x38, - 0x80, 0xbe, 0x94, 0x3e, 0x45, 0x54, 0xb7, 0x51, 0xda, 0xd5, 0xfc, 0x8d, 0x40, 0x70, 0x20, 0x93, - 0x84, 0x0f, 0xb0, 0x56, 0x56, 0x27, 0x13, 0x35, 0x90, 0x39, 0x35, 0x2c, 0xd5, 0xb9, 0xb4, 0x5a, - 0xe7, 0x19, 0x43, 0xce, 0x02, 0x43, 0x8f, 0xa1, 0xaa, 0x65, 0x56, 0x84, 0x65, 0xcd, 0x7c, 0xe3, - 0x12, 0x8a, 0xb4, 0x1d, 0x59, 0x7c, 0x73, 0x17, 0xbc, 0xb6, 0x94, 0xc9, 0x17, 0x79, 0xce, 0xc6, - 0x78, 0x28, 0x94, 0x45, 0x48, 0x1a, 0x4e, 0xcb, 0x8d, 0xb4, 0xdd, 0xbc, 0x05, 0x6e, 0x37, 0x55, - 0xab, 0xfb, 0x15, 0xbb, 0xbf, 0x0b, 0xde, 0xd7, 0x32, 0x3d, 0x5b, 0x05, 0x38, 0x16, 0xd0, 0x00, - 0x78, 0x9e, 0x48, 0xb6, 0x26, 0x45, 0xc9, 0x22, 0x6e, 0x83, 0xdf, 0x91, 0xa3, 0x7e, 0xc2, 0x57, - 0x21, 0x64, 0x96, 0xa4, 0x3d, 0x56, 0xbc, 0x58, 0x45, 0xd4, 0x67, 0x49, 0x8e, 0x55, 0x2e, 0xd6, - 0x9d, 0xc4, 0xb3, 0x90, 0x9f, 0x09, 0x80, 0xde, 0x35, 0x90, 0x87, 0x73, 0x90, 0x4d, 0x94, 0x1d, - 0x0f, 0x58, 0xc2, 0x72, 0x53, 0x55, 0x8d, 0x5e, 0x51, 0x55, 0xe9, 0xff, 0xaa, 0x0a, 0x19, 0xfb, - 0xea, 0xf8, 0xd5, 0xcb, 0xcd, 0x57, 0xf9, 0x9b, 0x00, 0xcc, 0xd4, 0x44, 0x77, 0xc0, 0xeb, 0x4b, - 0x99, 0xf4, 0x2c, 0x8e, 0xb4, 0xdc, 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x07, 0x39, 0x67, 0x8a, + 0xc7, 0xc1, 0x06, 0x7d, 0x13, 0x36, 0x67, 0x1e, 0xfc, 0x2e, 0x99, 0xba, 0xba, 0xb9, 0xcc, 0x32, + 0x74, 0x55, 0xa6, 0x71, 0xda, 0xc5, 0xe3, 0xc0, 0xe9, 0x9c, 0xc2, 0x96, 0x90, 0x25, 0x89, 0x67, + 0x79, 0x36, 0xec, 0xf8, 0xe6, 0x85, 0x74, 0x84, 0x84, 0x1e, 0x91, 0x6f, 0xef, 0x9d, 0x09, 0x75, + 0x3e, 0x1e, 0xe0, 0x3b, 0xf8, 0xae, 0x81, 0xdd, 0x11, 0xb2, 0xb4, 0x34, 0xeb, 0x77, 0xcf, 0xe4, + 0x1d, 0x96, 0x89, 0xbb, 0x86, 0xfc, 0x6c, 0xf0, 0x2b, 0x21, 0xbf, 0x55, 0xb6, 0x7a, 0x2f, 0xf7, + 0xbe, 0x32, 0x59, 0x3f, 0xcf, 0xb3, 0xe1, 0xa0, 0xae, 0xa1, 0xf7, 0xff, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0x0b, 0x14, 0x8f, 0x8d, 0xab, 0x0c, 0x00, 0x00, } diff --git a/proto/schema.proto b/proto/schema.proto index a2682bb..c2f2bfa 100644 --- a/proto/schema.proto +++ b/proto/schema.proto @@ -58,6 +58,8 @@ message FieldSchema { // state is `Created`. DataType element_type = 10; // For array type, the element type is stored here ValueField default_value = 11; // default_value only support scalars except array and json for now + bool is_partition_key = 12; // enable logic partitions + int64 partitions = 13; // num of default physical partitions, and not support alter if enable logic partitions } /**