Skip to content

Commit

Permalink
Add Diogen DB schema
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Dec 13, 2024
1 parent 4f65a7d commit 27b1cc9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions db-schema/diogen/report.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
drop table if exists diogen.report;

create table diogen.report
(
`machine` LowCardinality(String) CODEC (ZSTD(20)),
`generated_time` DateTime CODEC (Delta(4), ZSTD(20)),
`project` LowCardinality(String) CODEC (ZSTD(20)),
`tc_build_id` UInt32 CODEC (DoubleDelta, ZSTD(20)),
`branch` LowCardinality(String) CODEC (ZSTD(20)),
`tc_build_type` LowCardinality(String) CODEC (ZSTD(20)),

`measures.name` Array(LowCardinality(String)) CODEC (ZSTD(20)),
`measures.value` Array(Float64) CODEC (Gorilla, ZSTD(20)),
`measures.type` Array(LowCardinality(String)) CODEC (ZSTD(20)),

`triggeredBy` LowCardinality(String) CODEC (ZSTD(20)),
`mode` LowCardinality(String) CODEC (ZSTD(20))
)
engine = MergeTree
partition by (toYYYYMM(generated_time))
order by (branch, project, machine, generated_time);

0 comments on commit 27b1cc9

Please sign in to comment.