File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
clickhouse_db_schema/benchmark_regression_summary_report Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ CREATE TABLE benchmark .benchmark_regression_report
2
+ (
3
+ ` id` UUID DEFAULT generateUUIDv4(),
4
+ ` report_id` String, -- unique id for the report config
5
+ ` created_at` DateTime64(0 , ' UTC' ) DEFAULT now(),
6
+ ` last_record_ts` DateTime64(0 , ' UTC' ),
7
+ ` last_record_commit` String,
8
+ ` type` String, -- e.g. 'daily','weekly'
9
+ ` status` String, -- e.g. 'no_regression',"regression",'failure'
10
+ ` regression_count` UInt32 DEFAULT 0 ,
11
+ ` insufficient_data_count` UInt32 DEFAULT 0 ,
12
+ ` suspected_regression_count` UInt32 DEFAULT 0 ,
13
+ ` total_count` UInt32 DEFAULT 0 ,
14
+ ` repo` String,
15
+ ` report` String DEFAULT ' {}'
16
+ )
17
+ ENGINE = SharedMergeTree(' /clickhouse/tables/{uuid}/{shard}' , ' {replica}' )
18
+ PARTITION BY toYYYYMM(report_date)
19
+ ORDER BY
20
+ (
21
+ report_id,
22
+ type,
23
+ status,
24
+ last_record_ts,
25
+ last_record_commit,
26
+ created_at,
27
+ repo
28
+ id
29
+ )
30
+ TTL created_at + toIntervalYear(10 )
31
+ SETTINGS index_granularity = 8192 ;
You can’t perform that action at this time.
0 commit comments