ClickHouse/tests/queries/0_stateless/03222_create_timeseries_table.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
623 B
MySQL
Raw Normal View History

2024-08-13 13:35:14 +00:00
SET allow_experimental_time_series_table = 1;
CREATE TABLE 03222_timeseries_table1 ENGINE = TimeSeries FORMAT Null;
CREATE TABLE 03222_timeseries_table2 ENGINE = TimeSeries SETTINGS store_min_time_and_max_time = 1, aggregate_min_time_and_max_time = 1 FORMAT Null;
2024-08-22 13:56:22 +00:00
2024-08-13 13:35:14 +00:00
--- This doesn't work because allow_nullable_key cannot be set in query for the internal MergeTree tables
--- CREATE TABLE 03222_timeseries_table3 ENGINE = TimeSeries SETTINGS store_min_time_and_max_time = 1, aggregate_min_time_and_max_time = 0;
CREATE TABLE 03222_timeseries_table4 ENGINE = TimeSeries SETTINGS store_min_time_and_max_time = 0 FORMAT Null;