feat: change EXPIRE WHEN to EXPIRE AFTER (#170)

* feat: change EXPIRE WHEN to EXPIRE AFTER

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* change expire_after type

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* optional expire after

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2024-05-27 14:40:56 +08:00
committed by GitHub
parent 3cd71167ee
commit 31dd060fc3
14 changed files with 2335 additions and 1080 deletions
+5 -5
View File
@@ -65,19 +65,19 @@ message FlowResponse {
}
// Create a flow
//
// Very similar to `ddl.CreateTaskExpr`,
//
// Very similar to `ddl.CreateTaskExpr`,
// replace `source_table_names` with `source_table_ids`
message CreateRequest {
FlowId flow_id = 1;
FlowId flow_id = 1;
repeated TableId source_table_ids = 2;
TableName sink_table_name = 3;
bool create_if_not_exists = 4;
string expire_when = 5;
// Expire data older than the given duration seconds.
ExpireAfter expire_after = 5;
string comment = 6;
string sql = 7;
map<string, string> flow_options = 8;
}
message DropRequest { FlowId flow_id = 1; }