feat: enable database creation (#141)

This commit is contained in:
Yohan Wal
2024-04-07 16:07:46 +08:00
committed by GitHub
parent 06f6297ff3
commit 1bd2398b68
10 changed files with 2304 additions and 427 deletions
+4 -3
View File
@@ -70,9 +70,10 @@ message DropTableExpr {
}
message CreateDatabaseExpr {
string database_name = 1;
bool create_if_not_exists = 2;
map<string, string> options = 3;
string catalog_name = 1;
string database_name = 2;
bool create_if_not_exists = 3;
map<string, string> options = 4;
}
message TruncateTableExpr {
+5
View File
@@ -27,6 +27,10 @@ enum DdlTaskType {
Drop = 1;
}
message CreateDatabaseTask {
CreateDatabaseExpr create_database = 1;
}
message CreateTableTask {
CreateTableExpr create_table = 1;
repeated Partition partitions = 2;
@@ -67,6 +71,7 @@ message DdlTaskRequest {
DropTableTasks drop_table_tasks = 7;
AlterTableTasks alter_table_tasks = 8;
DropDatabaseTask drop_database_task = 9;
CreateDatabaseTask create_database_task = 10;
}
}