feat: introduce ApplyStagingManifestRequest (#296)

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2025-12-24 16:30:08 +08:00
committed by GitHub
parent 173efe5ec6
commit 520fa524f9
5 changed files with 3791 additions and 608 deletions
+17
View File
@@ -60,6 +60,7 @@ message RegionRequest {
SyncRequest sync = 17;
ListMetadataRequest list_metadata = 18;
BuildIndexRequest build_index = 19;
ApplyStagingManifestRequest apply_staging_manifest = 20;
}
}
@@ -273,3 +274,19 @@ message ListMetadataRequest {
message BuildIndexRequest {
uint64 region_id = 1;
}
// The file metas of a staging manifest.
// It is a json array of file metadatas.
message FileMetas {
bytes data = 1;
}
/// Apply staging manifest request.
message ApplyStagingManifestRequest {
// The target region id.
uint64 region_id = 1;
// The partition expression of the staging manifest.
string partition_expr = 2;
// The file metas to add to the staging manifest.
FileMetas files_to_add = 3;
}