Skip to content

Commit a472d8b

Browse files
authored
fix: unsupported function (#3901)
1 parent 9d3e92e commit a472d8b

12 files changed

Lines changed: 86 additions & 24 deletions

services/libs/tinybird/pipes/health_score_active_contributors.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SQL >
1111
memberId != ''
1212
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
1313
AND segmentId = (SELECT segmentId FROM segments_filtered)
14-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
14+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1515
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1616
{% if defined(startDate) %}
1717
AND timestamp
@@ -30,7 +30,7 @@ SQL >
3030
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
3131
AND timestamp >= toStartOfQuarter(now() - toIntervalQuarter(1))
3232
AND timestamp < toStartOfQuarter(now())
33-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
33+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
3434
GROUP BY segmentId
3535
{% end %}
3636

services/libs/tinybird/pipes/health_score_active_days.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SQL >
66
FROM activityRelations_bucket_routing
77
WHERE
88
segmentId = (SELECT segmentId FROM segments_filtered)
9-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
9+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1010
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1111
{% if defined(startDate) %}
1212
AND timestamp
@@ -23,7 +23,7 @@ SQL >
2323
WHERE
2424
timestamp >= toStartOfDay(now() - toIntervalDay(365))
2525
AND timestamp < toStartOfDay(now())
26-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
26+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
2727
GROUP BY segmentId
2828
{% end %}
2929

services/libs/tinybird/pipes/health_score_contributions_outside_work_hours.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SQL >
1212
1 = 1
1313
{% if defined(project) %}
1414
AND segmentId = (SELECT segmentId FROM segments_filtered)
15-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
15+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1616
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1717
{% if defined(startDate) %}
1818
AND timestamp
@@ -25,7 +25,7 @@ SQL >
2525
{% else %}
2626
AND timestamp >= toStartOfDay(now() - toIntervalDay(365))
2727
AND timestamp < toStartOfDay(now() + toIntervalDay(1))
28-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
28+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
2929
{% end %}
3030
GROUP BY segmentId
3131

services/libs/tinybird/pipes/health_score_contributor_dependency.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SQL >
88
memberId != ''
99
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
1010
AND segmentId = (SELECT segmentId FROM segments_filtered)
11-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
11+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1212
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1313
{% if defined(startDate) %}
1414
AND timestamp
@@ -28,7 +28,7 @@ SQL >
2828
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
2929
AND timestamp >= toStartOfDay(now() - INTERVAL 365 DAY)
3030
AND timestamp < toStartOfDay(now() + INTERVAL 1 DAY)
31-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
31+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
3232
GROUP BY segmentId, memberId
3333
ORDER by contributionCount DESC
3434
{% end %}

services/libs/tinybird/pipes/health_score_forks.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SQL >
1010
WHERE
1111
type = 'fork'
1212
AND segmentId = (SELECT segmentId FROM segments_filtered)
13-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
13+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1414
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1515
{% if defined(startDate) %}
1616
AND timestamp
@@ -24,7 +24,7 @@ SQL >
2424
{% else %}
2525
SELECT segmentId, count() AS forks
2626
FROM activityRelations_deduplicated_cleaned_bucket_union
27-
WHERE type = 'fork' AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
27+
WHERE type = 'fork' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
2828
GROUP BY segmentId
2929
{% end %}
3030

services/libs/tinybird/pipes/health_score_issues_resolution.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SQL >
1717
WHERE
1818
segmentId = (SELECT segmentId FROM segments_filtered)
1919
AND closedAt IS NOT NULL
20-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
20+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
2121
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
2222
{% if defined(startDate) %}
2323
AND openedAt
@@ -34,7 +34,7 @@ SQL >
3434
openedAt >= toStartOfDay(now()) - INTERVAL 365 DAY
3535
AND openedAt < toStartOfDay(now()) + INTERVAL 1 DAY
3636
AND closedAt IS NOT NULL
37-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
37+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
3838
GROUP BY segmentId
3939
{% end %}
4040

services/libs/tinybird/pipes/health_score_merge_lead_time.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SQL >
1010
1 = 1
1111
{% if defined(project) %}
1212
AND segmentId = (SELECT segmentId FROM segments_filtered)
13-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
13+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1414
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1515
{% if defined(startDate) %}
1616
AND openedAt
@@ -22,7 +22,7 @@ SQL >
2222
{% else %}
2323
AND openedAt >= toStartOfDay(now() - toIntervalDay(365))
2424
AND openedAt < toStartOfDay(now() + toIntervalDay(1))
25-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
25+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
2626
{% end %}
2727
GROUP BY segmentId
2828

services/libs/tinybird/pipes/health_score_organization_dependency.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SQL >
88
organizationId != ''
99
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
1010
AND segmentId = (SELECT segmentId FROM segments_filtered)
11-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
11+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1212
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1313
{% if defined(startDate) %}
1414
AND timestamp
@@ -27,7 +27,7 @@ SQL >
2727
AND (type, platform) IN (SELECT activityType, platform FROM activityTypes_filtered)
2828
AND timestamp >= toStartOfDay(now() - INTERVAL 365 DAY)
2929
AND timestamp < toStartOfDay(now() + INTERVAL 1 DAY)
30-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
30+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
3131
GROUP BY segmentId, organizationId
3232
{% end %}
3333

services/libs/tinybird/pipes/health_score_pull_requests.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SQL >
1414
OR type = 'changeset-created'
1515
)
1616
AND segmentId = (SELECT segmentId FROM segments_filtered)
17-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
17+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1818
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1919
{% if defined(startDate) %}
2020
AND timestamp
@@ -36,7 +36,7 @@ SQL >
3636
)
3737
AND timestamp >= toStartOfDay(now() - toIntervalDay(365))
3838
AND timestamp < toStartOfDay(now() + toIntervalDay(1))
39-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
39+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
4040
GROUP BY segmentId
4141
{% end %}
4242

services/libs/tinybird/pipes/health_score_retention.pipe

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SQL >
77
WHERE
88
memberId != ''
99
AND segmentId = (SELECT segmentId FROM segments_filtered)
10-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
10+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
1111
{% if defined(repos) %} AND channel IN (SELECT channel FROM repos_to_channels) {% end %}
1212
{% if defined(endDate) %}
1313
AND timestamp >= toStartOfQuarter(
@@ -30,7 +30,7 @@ SQL >
3030
SELECT segmentId, groupUniqArray(memberId) AS currentQuarterMembers
3131
FROM activityRelations_deduplicated_cleaned_bucket_union
3232
WHERE
33-
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
33+
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
3434
{% if defined(endDate) %}
3535
AND timestamp >= toStartOfQuarter(
3636
parseDateTimeBestEffort(
@@ -59,7 +59,7 @@ SQL >
5959
WHERE
6060
memberId != ''
6161
AND segmentId = (SELECT segmentId FROM segments_filtered)
62-
AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
62+
AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
6363
{% if defined(endDate) %}
6464
AND timestamp >= toStartOfQuarter(
6565
parseDateTimeBestEffort(
@@ -82,7 +82,7 @@ SQL >
8282
SELECT segmentId, groupUniqArray(memberId) AS previousQuarterMembers
8383
FROM activityRelations_deduplicated_cleaned_bucket_union
8484
WHERE
85-
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels(excluded = True))
85+
memberId != '' AND channel NOT IN (SELECT channel FROM repos_to_channels_excluded)
8686
{% if defined(endDate) %}
8787
AND timestamp >= toStartOfQuarter(
8888
parseDateTimeBestEffort(

0 commit comments

Comments
 (0)