ClickHouse/docs/en/sql-reference/table-functions/timeSeriesMetrics.md
Vitaly Baranov bf33aabec4 Add documentation.
(cherry picked from commit 083fff6ed6)
2024-08-06 20:15:51 +02:00

943 B

slug sidebar_position sidebar_label
/en/sql-reference/table-functions/timeSeriesMetrics 145 timeSeriesMetrics

timeSeriesMetrics

timeSeriesMetrics(db_name.time_series_table) - Returns the metrics table used by table db_name.time_series_table which table engine is TimeSeries:

CREATE TABLE db_name.time_series_table ENGINE=TimeSeries METRICS metrics_table

The function also works if the metrics table is inner:

CREATE TABLE db_name.time_series_table ENGINE=TimeSeries METRICS INNER UUID '01234567-89ab-cdef-0123-456789abcdef'

The following queries are equivalent:

SELECT * FROM timeSeriesMetrics(db_name.time_series_table);
SELECT * FROM timeSeriesMetrics('db_name.time_series_table');
SELECT * FROM timeSeriesMetrics('db_name', 'time_series_table');