timeSeriesMetrics
timeSeriesMetrics(db_name.time_series_table)
- 返回由表 db_name.time_series_table
使用的 指标 表,该表的表引擎为 TimeSeries
CREATE TABLE db_name.time_series_table ENGINE=TimeSeries METRICS metrics_table
如果 指标 表在内部,该函数也适用
CREATE TABLE db_name.time_series_table ENGINE=TimeSeries METRICS INNER UUID '01234567-89ab-cdef-0123-456789abcdef'
以下查询等效
SELECT * FROM timeSeriesMetrics(db_name.time_series_table);
SELECT * FROM timeSeriesMetrics('db_name.time_series_table');
SELECT * FROM timeSeriesMetrics('db_name', 'time_series_table');