feat: truncate region (#103)

This commit is contained in:
Vanish
2023-09-24 15:13:21 +08:00
committed by GitHub
parent 115c108077
commit 693128abe9
4 changed files with 1397 additions and 121 deletions
+3
View File
@@ -46,6 +46,7 @@ message RegionRequest {
AlterRequest alter = 9;
FlushRequest flush = 10;
CompactRequest compact = 11;
TruncateRequest truncate = 12;
}
}
@@ -129,6 +130,8 @@ message FlushRequest { uint64 region_id = 1; }
message CompactRequest { uint64 region_id = 1; }
message TruncateRequest { uint64 region_id = 1; }
// The column definition of a region. Unlike the message `ColumnDef` in
// `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef`
// is for region requests use only. So it carries an extra field `column_id`