mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-27 14:16:18 +00:00
feat: invoke handle_batch_open_requests (#4107)
* feat: open all regions via invoking `handle_batch_open_requests` * tests: add sqlness tests * refactor: avoid cloning * chore: apply suggestions from CR * chore: update config.md * chore: apply suggestions from CR
This commit is contained in:
@@ -23,8 +23,6 @@ SELECT avg(cpu_util) FROM system_metrics;
|
||||
|
||||
SELECT idc, avg(memory_util) FROM system_metrics GROUP BY idc ORDER BY idc;
|
||||
|
||||
DROP TABLE system_metrics;
|
||||
|
||||
create table foo (
|
||||
host string,
|
||||
ts timestamp DEFAULT '2023-04-29 00:00:00+00:00',
|
||||
@@ -41,4 +39,36 @@ insert into foo (host) values ('host3');
|
||||
|
||||
select * from foo;
|
||||
|
||||
DROP TABLE foo;
|
||||
CREATE TABLE phy (ts timestamp time index, val double) engine=metric with ("physical_metric_table" = "");
|
||||
|
||||
CREATE TABLE t1 (ts timestamp time index, val double, host string primary key) engine = metric with ("on_physical_table" = "phy");
|
||||
|
||||
INSERT INTO t1 VALUES ('host1',0, 0), ('host2', 1, 1,);
|
||||
|
||||
SELECT * from t1;
|
||||
|
||||
CREATE TABLE t2 (ts timestamp time index, job string primary key, val double) engine = metric with ("on_physical_table" = "phy");
|
||||
|
||||
SELECT * from t2;
|
||||
|
||||
INSERT INTO t2 VALUES ('job1', 0, 0), ('job2', 1, 1);
|
||||
|
||||
-- SQLNESS ARG restart=true
|
||||
|
||||
SELECT * FROM system_metrics;
|
||||
|
||||
select * from foo;
|
||||
|
||||
SELECT * from t1;
|
||||
|
||||
SELECT * from t2;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
DROP TABLE t2;
|
||||
|
||||
DROP TABLE phy;
|
||||
|
||||
DROP TABLE system_metrics;
|
||||
|
||||
DROP TABLE foo;
|
||||
|
||||
Reference in New Issue
Block a user