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:
@@ -75,6 +75,8 @@ message AffectedRows { uint32 value = 1; }
|
||||
|
||||
message Metrics { bytes metrics = 1; }
|
||||
|
||||
message ExpireAfter { int64 value = 1; }
|
||||
|
||||
message FlightMetadata {
|
||||
AffectedRows affected_rows = 1;
|
||||
Metrics metrics = 2;
|
||||
|
||||
@@ -48,7 +48,8 @@ message CreateFlowExpr {
|
||||
TableName sink_table_name = 4;
|
||||
bool or_replace = 5;
|
||||
bool create_if_not_exists = 6;
|
||||
string expire_when = 7;
|
||||
// Expire data older than the given duration seconds.
|
||||
ExpireAfter expire_after = 7;
|
||||
string comment = 8;
|
||||
string sql = 9;
|
||||
map<string, string> flow_options = 10;
|
||||
@@ -149,9 +150,9 @@ message AddColumn {
|
||||
}
|
||||
|
||||
message ChangeColumnType {
|
||||
string column_name = 1;
|
||||
ColumnDataType target_type = 2;
|
||||
ColumnDataTypeExtension target_type_extension = 3;
|
||||
string column_name = 1;
|
||||
ColumnDataType target_type = 2;
|
||||
ColumnDataTypeExtension target_type_extension = 3;
|
||||
}
|
||||
|
||||
message DropColumn { string name = 1; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user