Skip to content

Commit 1a9821f

Browse files
committed
feat: repository groups datasource
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent 9f6ba86 commit 1a9821f

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
SCHEMA >
32
`country` String,
43
`country_code` String,
54
`timezone_offset` Int16
65

7-
ENGINE "MergeTree"
8-
ENGINE_SORTING_KEY "country, timezone_offset"
6+
ENGINE MergeTree
7+
ENGINE_SORTING_KEY country, timezone_offset

services/libs/tinybird/datasources/lfxMemberships.datasource

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ SCHEMA >
4242
`accountDomain` String `json:$.record.accountDomain`,
4343
`domainAlias` Array(String) `json:$.record.domainAlias[:]` DEFAULT []
4444

45-
4645
ENGINE ReplacingMergeTree
4746
ENGINE_PARTITION_KEY toYear(createdAt)
4847
ENGINE_SORTING_KEY segmentId, organizationId, id
49-
ENGINE_VER updatedAt
48+
ENGINE_VER updatedAt

services/libs/tinybird/datasources/organizationIdentities.datasource

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ SCHEMA >
2222
`type` String `json:$.record.type`,
2323
`value` String `json:$.record.value`
2424

25-
2625
ENGINE ReplacingMergeTree
2726
ENGINE_PARTITION_KEY toYear(createdAt)
2827
ENGINE_SORTING_KEY organizationId, platform, type, value
29-
ENGINE_VER updatedAt
28+
ENGINE_VER updatedAt
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SCHEMA >
2+
`id` String `json:$.record.id`,
3+
`name` String `json:$.record.name` DEFAULT '',
4+
`slug` String `json:$.record.slug` DEFAULT '',
5+
`repositories` Array(String) `json:$.record.repositories[:]` DEFAULT [],
6+
`insightsProjectId` String `json:$.record.insightsProjectId` DEFAULT '',
7+
`createdAt` DateTime64(3) `json:$.record.createdAt`,
8+
`updatedAt` DateTime64(3) `json:$.record.updatedAt`,
9+
`deletedAt` Nullable(DateTime64(3)) `json:$.record.deletedAt`
10+
11+
ENGINE ReplacingMergeTree
12+
ENGINE_SORTING_KEY insightsProjectId, id
13+
ENGINE_VER updatedAt

0 commit comments

Comments
 (0)