diff --git a/clickhouse_db_schema/benchmark_regression_summary_report/schema.sql b/clickhouse_db_schema/benchmark_regression_summary_report/schema.sql new file mode 100644 index 0000000000..9b73de2a5b --- /dev/null +++ b/clickhouse_db_schema/benchmark_regression_summary_report/schema.sql @@ -0,0 +1,31 @@ +CREATE TABLE benchmark.benchmark_regression_report +( + `id` UUID DEFAULT generateUUIDv4(), + `report_id` String, -- unique id for the report config + `created_at` DateTime64(0, 'UTC') DEFAULT now(), + `last_record_ts` DateTime64(0, 'UTC'), + `last_record_commit` String, + `type` String, -- e.g. 'daily','weekly' + `status` String, -- e.g. 'no_regression',"regression",'failure' + `regression_count` UInt32 DEFAULT 0, + `insufficient_data_count` UInt32 DEFAULT 0, + `suspected_regression_count` UInt32 DEFAULT 0, + `total_count` UInt32 DEFAULT 0, + `repo` String, + `report` String DEFAULT '{}' +) +ENGINE = SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}') +PARTITION BY toYYYYMM(report_date) +ORDER BY +( + report_id, + type, + status, + last_record_ts, + last_record_commit, + created_at, + repo + id +) +TTL created_at + toIntervalYear(10) +SETTINGS index_granularity = 8192;