File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ enum DataType {
3737 Float16Vector = 102 ;
3838 BFloat16Vector = 103 ;
3939 SparseFloatVector = 104 ;
40+
41+ Blob = 200 ;
4042}
4143
4244enum FieldState {
@@ -65,6 +67,8 @@ message FieldSchema {
6567 bool is_dynamic = 12 ; // mark whether this field is the dynamic field
6668 bool is_partition_key = 13 ; // enable logic partitions
6769 bool is_clustering_key = 14 ;
70+
71+ bool is_blob_saved = 15 ; // for blob type, mark if the blob is saved
6872}
6973
7074/**
@@ -100,6 +104,12 @@ message ArrayArray {
100104
101105message JSONArray { repeated bytes data = 1 ; }
102106
107+ message BlobFile {
108+ bytes data = 1 ;
109+ string file_name = 2 ;
110+ string stored_path = 3 ;
111+ }
112+
103113message ValueField {
104114 oneof data {
105115 bool bool_data = 1 ;
@@ -152,15 +162,22 @@ message VectorField {
152162 }
153163}
154164
165+ message ExtraField {
166+ oneof data {
167+ BlobFile blob_file = 1 ;
168+ }
169+ }
170+
155171message FieldData {
156172 DataType type = 1 ;
157173 string field_name = 2 ;
158174 oneof field {
159175 ScalarField scalars = 3 ;
160176 VectorField vectors = 4 ;
177+ ExtraField extras = 5 ;
161178 }
162- int64 field_id = 5 ;
163- bool is_dynamic = 6 ;
179+ int64 field_id = 6 ;
180+ bool is_dynamic = 7 ;
164181}
165182
166183message IDs {
You can’t perform that action at this time.
0 commit comments