Skip to content

Commit 54c3ba5

Browse files
authored
fix: members tb pipeline filters out members without activities (#3239)
1 parent edeb016 commit 54c3ba5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

services/libs/tinybird/pipes/members_sorted_copy_pipe.pipe

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ SQL >
66
SELECT members.*, pub.publicName
77
FROM members final
88
left join members_public_names_ds pub on pub.memberId = members.id
9-
where not isBot and not isTeamMember
9+
where
10+
not isBot
11+
and not isTeamMember
12+
and members.id in (select distinct memberId from activityRelations_deduplicated_ds)
1013

1114
TYPE COPY
1215
TARGET_DATASOURCE members_sorted
1316
COPY_MODE replace
14-
COPY_SCHEDULE 10 * * * *
17+
COPY_SCHEDULE 8 * * * *

0 commit comments

Comments
 (0)