Skip to content

Commit 3a1aefb

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

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

proto/schema.proto

Lines changed: 19 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 {
@@ -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

101105
message 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+
103113
message 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+
155171
message 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

166183
message IDs {

0 commit comments

Comments
 (0)