feat: add flow_id and drop_if_exists to DropFlowExpr (#164)

* feat: add `flow_id` and `drop_if_exists` to `DropFlowExpr`

* chore: apply suggestions from CR

* chore: generate code
This commit is contained in:
Weny Xu
2024-05-10 12:32:37 +09:00
committed by GitHub
parent e152fcbf17
commit 219b2409bb
18 changed files with 2914 additions and 3279 deletions
+5 -6
View File
@@ -59,9 +59,9 @@ message FlowRequest {
message FlowResponse {
ResponseHeader header = 1;
uint64 affected_rows = 2;
map<string, bytes> extension = 3;
// affected task ids
repeated TaskId affected_tasks = 4;
// affected flow ids
repeated FlowId affected_flows = 3;
map<string, bytes> extension = 4;
}
// Create a flow
@@ -69,7 +69,7 @@ message FlowResponse {
// Very similar to `ddl.CreateTaskExpr`,
// replace `source_table_names` with `source_table_ids`
message CreateRequest {
TaskId flow_id = 1;
FlowId flow_id = 1;
repeated TableId source_table_ids = 2;
TableName sink_table_name = 3;
bool create_if_not_exists = 4;
@@ -79,6 +79,5 @@ message CreateRequest {
map<string, string> flow_options = 8;
}
message DropRequest { TaskId flow_id = 1; }
message DropRequest { FlowId flow_id = 1; }
message TaskId { uint32 id = 1; }