Skip to content

Commit 489d95b

Browse files
authored
fix: connected platforms in insights projects copy pipe (#3666)
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent ea3779f commit 489d95b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

services/libs/tinybird/datasources/integrations.datasource

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ SCHEMA >
2020
`integrationIdentifier` String `json:$.record.integrationIdentifier` DEFAULT '',
2121
`segmentId` String `json:$.record.segmentId` DEFAULT '',
2222
`createdAt` DateTime64(3) `json:$.record.createdAt`,
23-
`updatedAt` DateTime64(3) `json:$.record.updatedAt`
23+
`updatedAt` DateTime64(3) `json:$.record.updatedAt`,
24+
`deletedAt` Nullable(DateTime64(3)) `json:$.record.deletedAt`
2425

2526
ENGINE ReplacingMergeTree
2627
ENGINE_SORTING_KEY segmentId, id

services/libs/tinybird/pipes/insights_projects_populated_copy.pipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DESCRIPTION >
2121
Returns connected platforms by segmentId
2222

2323
SQL >
24-
SELECT platform, segmentId FROM integrations FINAL
24+
SELECT platform, segmentId FROM integrations FINAL WHERE deletedAt is null
2525

2626
NODE insights_projects_populated_copy_connected_platforms
2727
DESCRIPTION >

0 commit comments

Comments
 (0)