refactor: execute insert with select in query engine (#1181)

* refactor: execute insert with select in query engine

* fix: resolve PR comments
This commit is contained in:
LFC
2023-03-23 10:38:26 +08:00
committed by GitHub
parent 501faad8ab
commit b77b561bc8
31 changed files with 399 additions and 713 deletions

View File

@@ -0,0 +1,19 @@
create table demo1(host string, cpu double, memory double, ts timestamp time index);
create table demo2(host string, cpu double, memory double, ts timestamp time index);
insert into demo1(host, cpu, memory, ts) values ('host1', 66.6, 1024, 1655276557000), ('host2', 88.8, 333.3, 1655276558000);
insert into demo2(host) select * from demo1;
insert into demo2 select cpu,memory from demo1;
insert into demo2(ts) select memory from demo1;
insert into demo2 select * from demo1;
select * from demo2 order by ts;
drop table demo1;
drop table demo2;