Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions services/libs/tinybird/pipes/health_score_retention.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ SQL >
memberId != ''
AND segmentId = (SELECT segmentId FROM segments_filtered)
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
{% if defined(endDate) %}
AND timestamp >= toStartOfQuarter(
Expand All @@ -31,6 +32,7 @@ SQL >
FROM activityRelations_deduplicated_cleaned_bucket_union
WHERE
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
{% if defined(endDate) %}
AND timestamp >= toStartOfQuarter(
parseDateTimeBestEffort(
Expand Down Expand Up @@ -60,6 +62,7 @@ SQL >
memberId != ''
AND segmentId = (SELECT segmentId FROM segments_filtered)
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
{% if defined(endDate) %}
AND timestamp >= toStartOfQuarter(
parseDateTimeBestEffort(
Expand All @@ -83,6 +86,7 @@ SQL >
FROM activityRelations_deduplicated_cleaned_bucket_union
WHERE
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
{% if defined(endDate) %}
AND timestamp >= toStartOfQuarter(
parseDateTimeBestEffort(
Expand Down
Loading