feat: add source_tables and source_table_ids (#151)

* feat: add `source_tables`

* feat: use `SchemaScopedTableName`

* chore: include flow proto

* chore: rename

* feat: add `CreateFlowTask` and `DropFlowTask`
This commit is contained in:
Weny Xu
2024-04-25 17:29:14 +08:00
committed by GitHub
parent 5d7db484ce
commit 93ebc1ba90
17 changed files with 8304 additions and 2940 deletions
+12 -11
View File
@@ -42,8 +42,8 @@ message InsertRequest {
message FlowRequest {
oneof body {
FlowCreateRequest create = 1;
FlowRemoveRequest remove = 2;
CreateRequest create = 1;
RemoveRequest remove = 2;
}
}
@@ -56,16 +56,17 @@ message FlowResponse {
}
// very similar to `ddl.CreateTaskExpr` just replace `task_name` with `task_id`
message FlowCreateRequest {
TaskId task_id = 1;
TableId output_table_id = 2;
bool create_if_not_exists = 3;
string expire_when = 4;
string comment = 5;
string sql = 6;
map<string, string> task_options = 7;
message CreateRequest {
TaskId task_id = 1;
repeated TableId source_table_ids = 2;
TableId sink_table_id = 3;
bool create_if_not_exists = 4;
string expire_when = 5;
string comment = 6;
string sql = 7;
map<string, string> task_options = 8;
}
message FlowRemoveRequest { TaskId task_id = 1; }
message RemoveRequest { TaskId task_id = 1; }
message TaskId { uint32 id = 1; }