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 -4
View File
@@ -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; }