Skip to content

Commit

Permalink
update blob data insert request
Browse files Browse the repository at this point in the history
Signed-off-by: muzhouliu <[email protected]>
  • Loading branch information
mzhl1111 committed Feb 17, 2024
1 parent 5f0d8f6 commit f23b5a1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions proto/milvus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ service MilvusService {

rpc CreateBlobStorage(CreateBlobStorageRequest) returns (common.Status) {}
rpc DropBlobStorage(DropBlobStorageRequest) returns (common.Status) {}
rpc InsertBlobData(InsertRequest) returns (InsertBlobDataResponse) {}
rpc DeleteBlobData(DeleteRequest) returns (MutationResult) {}

rpc ReplicateMessage(ReplicateMessageRequest) returns (ReplicateMessageResponse) {}
}
Expand Down Expand Up @@ -1824,6 +1826,16 @@ message DropBlobStorageRequest {
string storage_path = 2;
}

message InsertBlobDataResponse {
option (common.privilege_ext_obj) = {
object_type: Global
object_privilege: PrivilegeInsert
object_name_index: -1
};
common.Status status = 1;
schema.FieldData saved_blob_path_string = 2;
}

message ReplicateMessageRequest {
common.MsgBase base = 1;
string channel_name = 2;
Expand Down
8 changes: 4 additions & 4 deletions proto/schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ message FieldSchema {
bool is_partition_key = 13; // enable logic partitions
bool is_clustering_key = 14;

bool is_blob_saved = 15; // for blob type, mark if the blob is saved
bool blob_root_path = 15; // For blob type, If saved to S3 will have a root path (partition & real file can append)
}

/**
Expand Down Expand Up @@ -105,9 +105,9 @@ message ArrayArray {
message JSONArray { repeated bytes data = 1; }

message BlobFile {
bytes data = 1 ;
string file_name = 2;
string stored_path = 3;
bytes data = 1 ; //data field will be set to null after saved
string file_name = 2; // s3://<collection's root blob path>/<partition folder>/<file name> locates the blob file
string sha256 = 3;
}

message ValueField {
Expand Down

0 comments on commit f23b5a1

Please sign in to comment.