feat: add insert into logical plan in request (#231)

* feat: insert into logical plan

* chore: make all

* feat: use TableName instead

* chore: make all

* chore: per review
This commit is contained in:
discord9
2025-04-18 20:03:23 +08:00
committed by GitHub
parent b6d9cffd43
commit e82b0158cd
5 changed files with 2031 additions and 223 deletions
+8
View File
@@ -54,9 +54,17 @@ message QueryRequest {
string sql = 1;
bytes logical_plan = 2;
PromRangeQuery prom_range_query = 3;
InsertIntoPlan insert_into_plan = 4;
}
}
// A temporary solution for executing insert into table SELECT .. with logical plan
// since substrait to logical plan doesn't support dml yet.
message InsertIntoPlan {
TableName table_name = 1;
bytes logical_plan = 2;
}
message InsertRequests { repeated InsertRequest inserts = 1; }
message InsertRequest {