Skip to content

Commit 27965ee

Browse files
sdairsalrocar
authored andcommitted
clerk schemas
1 parent 8817a76 commit 27965ee

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SCHEMA >
2+
`time` DateTime64(3) `json:$.timestamp` DEFAULT now(),
3+
`data` JSON `json:$.data`,
4+
`event_attributes` JSON `json:$.event_attributes`,
5+
`object` String `json:$.object`,
6+
`type` String `json:$.type`
7+
8+
ENGINE "MergeTree"
9+
ENGINE_PARTITION_KEY "toYear(time)"
10+
ENGINE_SORTING_KEY "time"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SCHEMA >
2+
`time` DateTime64(3) `json:$.timestamp` DEFAULT now(),
3+
`record` JSON `json:$`
4+
5+
ENGINE "MergeTree"
6+
ENGINE_PARTITION_KEY "toYear(time)"
7+
ENGINE_SORTING_KEY "time"

0 commit comments

Comments
 (0)