Skip to content

Commit c3597d9

Browse files
committed
fix: address PR comments
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent db27488 commit c3597d9

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

services/libs/tinybird/datasources/packages.datasource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ SCHEMA >
6666
`createdAt` DateTime64(3) `json:$.record.created_at`
6767

6868
ENGINE ReplacingMergeTree
69-
ENGINE_PARTITION_KEY toYear(lastSyncedAt)
69+
ENGINE_PARTITION_KEY toYear(createdAt)
7070
ENGINE_SORTING_KEY ecosystem, purl
7171
ENGINE_VER lastSyncedAt

services/libs/tinybird/datasources/repoScorecardChecks.datasource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ SCHEMA >
1919
`updatedAt` DateTime64(3) `json:$.record.updated_at`
2020

2121
ENGINE ReplacingMergeTree
22-
ENGINE_PARTITION_KEY toYear(updatedAt)
22+
ENGINE_PARTITION_KEY toYear(createdAt)
2323
ENGINE_SORTING_KEY repoId, checkName
2424
ENGINE_VER updatedAt

services/libs/tinybird/datasources/repos.datasource

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ SCHEMA >
5656
`updatedAt` DateTime64(3) `json:$.record.updated_at`
5757

5858
ENGINE ReplacingMergeTree
59-
ENGINE_PARTITION_KEY toYear(updatedAt)
60-
ENGINE_SORTING_KEY id
59+
ENGINE_PARTITION_KEY toYear(createdAt)
60+
ENGINE_SORTING_KEY url
6161
ENGINE_VER updatedAt

services/libs/tinybird/datasources/versions.datasource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ SCHEMA >
3434
`createdAt` DateTime64(3) `json:$.record.created_at`
3535

3636
ENGINE ReplacingMergeTree
37-
ENGINE_PARTITION_KEY toYear(lastSyncedAt)
37+
ENGINE_PARTITION_KEY toYear(createdAt)
3838
ENGINE_SORTING_KEY packageId, number
3939
ENGINE_VER lastSyncedAt

0 commit comments

Comments
 (0)