Skip to content

Commit f3ec612

Browse files
committed
Add blob file type in schema.proto
Signed-off-by: muzhouliu <sllzhlv77@gmail.com>
1 parent c57cb8f commit f3ec612

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

proto/schema.proto

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ enum DataType {
3737
Float16Vector = 102;
3838
BFloat16Vector = 103;
3939
SparseFloatVector = 104;
40+
41+
Blob = 200;
4042
}
4143

4244
enum FieldState {
@@ -100,6 +102,12 @@ message ArrayArray {
100102

101103
message JSONArray { repeated bytes data = 1; }
102104

105+
message BlobFile {
106+
bytes data = 1 ;
107+
string file_name = 2;
108+
string stored_path = 3;
109+
}
110+
103111
message ValueField {
104112
oneof data {
105113
bool bool_data = 1;
@@ -152,15 +160,22 @@ message VectorField {
152160
}
153161
}
154162

163+
message ExtraField {
164+
oneof data {
165+
BlobFile blob_file = 1;
166+
}
167+
}
168+
155169
message FieldData {
156170
DataType type = 1;
157171
string field_name = 2;
158172
oneof field {
159173
ScalarField scalars = 3;
160174
VectorField vectors = 4;
175+
ExtraField extras = 5;
161176
}
162-
int64 field_id = 5;
163-
bool is_dynamic = 6;
177+
int64 field_id = 6;
178+
bool is_dynamic = 7;
164179
}
165180

166181
message IDs {

0 commit comments

Comments
 (0)