feat: adds view expressions (#165)

* feat: adds view expressions

* feat: adds meta tasks for view

* feat: adds view_info to CreateViewTask

* chore: rename create_or_replace to or_replace
This commit is contained in:
dennis zhuang
2024-05-14 16:54:19 +08:00
committed by GitHub
parent 219b2409bb
commit a11db14b85
10 changed files with 9355 additions and 792 deletions
+21
View File
@@ -35,6 +35,8 @@ message DdlRequest {
TruncateTableExpr truncate_table = 7;
CreateFlowExpr create_flow = 8;
DropFlowExpr drop_flow = 9;
CreateViewExpr create_view = 10;
DropViewExpr drop_view = 11;
}
}
@@ -60,6 +62,25 @@ message DropFlowExpr {
bool drop_if_exists = 5;
}
// Create a view
message CreateViewExpr {
string catalog_name = 1;
string schema_name = 2;
string view_name = 3;
bytes logical_plan = 4;
bool create_if_not_exists = 5;
bool or_replace = 6;
}
// Drop a view
message DropViewExpr {
string catalog_name = 1;
string schema_name = 2;
string view_name = 3;
TableId view_id = 4;
bool drop_if_exists = 5;
}
message CreateTableExpr {
string catalog_name = 1;
string schema_name = 2;