refactor: remove task suffix (#162)

* refactor: remove task suffix

* chore: rename task_options to flow_options
This commit is contained in:
Weny Xu
2024-04-29 21:22:55 +08:00
committed by GitHub
parent 4bc0d17577
commit b5412f7225
14 changed files with 3137 additions and 3146 deletions
+5 -5
View File
@@ -43,7 +43,7 @@ message InsertRequest {
message FlowRequest {
oneof body {
CreateRequest create = 1;
RemoveRequest remove = 2;
DropRequest drop = 2;
}
}
@@ -55,21 +55,21 @@ message FlowResponse {
repeated TaskId affected_tasks = 4;
}
// Create a flow task
// Create a flow
//
// Very similar to `ddl.CreateTaskExpr`,
// replace `source_table_names` with `source_table_ids`
message CreateRequest {
TaskId task_id = 1;
TaskId flow_id = 1;
repeated TableId source_table_ids = 2;
TableName sink_table_name = 3;
bool create_if_not_exists = 4;
string expire_when = 5;
string comment = 6;
string sql = 7;
map<string, string> task_options = 8;
map<string, string> flow_options = 8;
}
message RemoveRequest { TaskId task_id = 1; }
message DropRequest { TaskId flow_id = 1; }
message TaskId { uint32 id = 1; }