Skip to content

Commit

Permalink
Add blob file type in schema.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhl1111 committed Jan 25, 2024
1 parent d367b5a commit 187106e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions proto/schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ enum DataType {
FloatVector = 101;
Float16Vector = 102;
BFloat16Vector = 103;

Blob = 200;
}

enum FieldState {
Expand Down Expand Up @@ -99,6 +101,12 @@ message ArrayArray {

message JSONArray { repeated bytes data = 1; }

message BlobFile {
bytes data = 1 ;
string file_name = 2;
string stored_path = 3;
}

message ValueField {
oneof data {
bool bool_data = 1;
Expand Down Expand Up @@ -135,15 +143,22 @@ message VectorField {
}
}

message ExtraField {
oneof data {
BlobFile blob_file = 1;
}
}

message FieldData {
DataType type = 1;
string field_name = 2;
oneof field {
ScalarField scalars = 3;
VectorField vectors = 4;
ExtraField extras = 5;
}
int64 field_id = 5;
bool is_dynamic = 6;
int64 field_id = 6;
bool is_dynamic = 7;
}

message IDs {
Expand Down

0 comments on commit 187106e

Please sign in to comment.