Skip to content

Commit 31ddfc0

Browse files
authored
fix: filter out bad timestamp issue activities to prevent overflows (#3693)
Signed-off-by: anil <epipav@gmail.com>
1 parent 003b27c commit 31ddfc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/libs/tinybird/pipes/issue_analysis_copy_pipe.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ SQL >
1313
memberId,
1414
organizationId
1515
FROM activityRelations_deduplicated_cleaned_bucket_union
16-
WHERE type = 'issues-opened'
16+
WHERE type = 'issues-opened' AND toYear(timestamp) >= 1971
1717

1818
NODE issues_closed
1919
SQL >
2020
SELECT sourceParentId, MIN(timestamp) AS closedAt
2121
FROM activityRelations_deduplicated_cleaned_bucket_union
22-
WHERE type = 'issues-closed' AND sourceParentId != ''
22+
WHERE type = 'issues-closed' AND sourceParentId != '' AND toYear(timestamp) >= 1971
2323
GROUP BY sourceParentId
2424

2525
NODE issues_comment

0 commit comments

Comments
 (0)