Compare commits

...

3 Commits

Author SHA1 Message Date
megao
063b274476
Merge 1988310c48 into 334b28f6db 2024-11-19 17:51:01 -08:00
megao
1988310c48 fix show create table test issue 2024-11-05 16:56:09 +08:00
megao
4178fcfbfb add name ALIAS metric 2024-10-29 10:20:02 +08:00
2 changed files with 9 additions and 2 deletions

View File

@ -9,12 +9,18 @@ namespace DB
ColumnsDescription StorageSystemAsynchronousMetrics::getColumnsDescription()
{
return ColumnsDescription
auto description = ColumnsDescription
{
{"metric", std::make_shared<DataTypeString>(), "Metric name."},
{"value", std::make_shared<DataTypeFloat64>(), "Metric value."},
{"description", std::make_shared<DataTypeString>(), "Metric description."},
};
description.setAliases({
{"name", std::make_shared<DataTypeString>(), "metric"}
});
return description;
}

View File

@ -22,7 +22,8 @@ CREATE TABLE system.asynchronous_metrics
(
`metric` String,
`value` Float64,
`description` String
`description` String,
`name` String ALIAS metric
)
ENGINE = SystemAsynchronousMetrics
COMMENT 'Contains metrics that are calculated periodically in the background. For example, the amount of RAM in use.'