forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0e8860
commit ac18ca1
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
tests/queries/0_stateless/02813_system_events_and_metrics_add_alias.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 4 additions & 0 deletions
4
tests/queries/0_stateless/02813_system_events_and_metrics_add_alias.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |