diff --git a/src/Storages/System/StorageSystemAsynchronousMetrics.cpp b/src/Storages/System/StorageSystemAsynchronousMetrics.cpp index a54b577d72b..26aa66aa507 100644 --- a/src/Storages/System/StorageSystemAsynchronousMetrics.cpp +++ b/src/Storages/System/StorageSystemAsynchronousMetrics.cpp @@ -9,12 +9,18 @@ namespace DB ColumnsDescription StorageSystemAsynchronousMetrics::getColumnsDescription() { - return ColumnsDescription + auto description = ColumnsDescription { {"metric", std::make_shared(), "Metric name."}, {"value", std::make_shared(), "Metric value."}, {"description", std::make_shared(), "Metric description."}, }; + + description.setAliases({ + {"name", std::make_shared(), "metric"} + }); + + return description; } diff --git a/tests/queries/0_stateless/02117_show_create_table_system.reference b/tests/queries/0_stateless/02117_show_create_table_system.reference index ef5a2c6665f..62a6231580f 100644 --- a/tests/queries/0_stateless/02117_show_create_table_system.reference +++ b/tests/queries/0_stateless/02117_show_create_table_system.reference @@ -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.'