mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
bf33aabec4
(cherry picked from commit 083fff6ed6
)
904 B
904 B
slug | sidebar_position | sidebar_label |
---|---|---|
/en/sql-reference/table-functions/timeSeriesData | 145 | timeSeriesData |
timeSeriesData
timeSeriesData(db_name.time_series_table)
- Returns the data table
used by table db_name.time_series_table
which table engine is TimeSeries:
CREATE TABLE db_name.time_series_table ENGINE=TimeSeries DATA data_table
The function also works if the data table is inner:
CREATE TABLE db_name.time_series_table ENGINE=TimeSeries DATA INNER UUID '01234567-89ab-cdef-0123-456789abcdef'
The following queries are equivalent:
SELECT * FROM timeSeriesData(db_name.time_series_table);
SELECT * FROM timeSeriesData('db_name.time_series_table');
SELECT * FROM timeSeriesData('db_name', 'time_series_table');