Skip to content

Commit 98549f7

Browse files
authored
regression_db schema (#7089)
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #7094 * #7092 * __->__ #7089
1 parent f83826b commit 98549f7

File tree

1 file changed

+31
-0
lines changed
  • clickhouse_db_schema/benchmark_regression_summary_report

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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;

0 commit comments

Comments
 (0)