Skip to content

Commit 5afb9f4

Browse files
committed
fix: fix activityTypes Tinybird data source sorting key
1 parent c236f49 commit 5afb9f4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

services/libs/tinybird/datasources/activityTypes.datasource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ SCHEMA >
2323
`updatedAt` DateTime64(3) `json:$.record.updatedAt`
2424

2525
ENGINE ReplacingMergeTree
26-
ENGINE_SORTING_KEY (isCodeContribution, isCollaboration, platform)
26+
ENGINE_SORTING_KEY (platform, activityType)
2727
ENGINE_VER updatedAt

services/libs/tinybird/pipes/segmentId_aggregates_mv.pipe

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ SQL >
1515
WHERE isCodeContribution = 1 OR isCollaboration = 1
1616
)
1717
GROUP BY segmentId
18+
19+
TYPE MATERIALIZED
20+
DATASOURCE segmentsAggregatedMV

0 commit comments

Comments
 (0)