Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiedeyantu committed Jul 19, 2023
1 parent d0e8860 commit ac18ca1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE TABLE system.metrics\n(\n `metric` String,\n `value` Int64,\n `description` String,\n `name` String\n)\nENGINE = SystemMetrics\nCOMMENT \'SYSTEM TABLE is built on the fly.\'
1
CREATE TABLE system.events\n(\n `event` String,\n `value` UInt64,\n `description` String,\n `name` String\n)\nENGINE = SystemEvents\nCOMMENT \'SYSTEM TABLE is built on the fly.\'
1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
show create table system.metrics;
select equals((select count() from system.metrics where name=metric) as r1, (select count() from system.metrics) as r2);
show create table system.events;
select equals((select count() from system.events where name=event) as r1, (select count() from system.events) as r2);

0 comments on commit ac18ca1

Please sign in to comment.