Skip to content

Commit 2208140

Browse files
committed
update
1 parent 623b135 commit 2208140

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tinybird/pipes/vercel_branch_distribution.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ SQL >
66
%
77
SELECT
88
coalesce(
9-
event.payload.deployment.meta.githubCommitRef,
10-
event.payload.deployment.meta.gitlabCommitRef
9+
event.payload.deployment.meta.githubCommitRef::String,
10+
event.payload.deployment.meta.gitlabCommitRef::String
1111
) as branch,
1212
count() as deployments,
1313
round(count() * 100.0 / sum(count()) OVER (), 2) as percentage

tinybird/pipes/vercel_commit_types.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ SQL >
1919
FROM (
2020
SELECT
2121
coalesce(
22-
event.payload.deployment.meta.githubCommitMessage,
23-
event.payload.deployment.meta.gitlabCommitMessage
22+
event.payload.deployment.meta.githubCommitMessage::String,
23+
event.payload.deployment.meta.gitlabCommitMessage::String
2424
) as message
2525
FROM vercel_logs
2626
WHERE event_type = 'deployment.created'

tinybird/pipes/vercel_git_analytics.pipe

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ NODE git_analytics
55
SQL >
66
%
77
SELECT
8-
event.payload.deployment.meta.githubCommitAuthorName as github_author,
9-
event.payload.deployment.meta.gitlabCommitAuthorName as gitlab_author,
10-
coalesce(github_author, gitlab_author) as author,
8+
event.payload.deployment.meta.githubCommitAuthorName::String as github_author,
9+
event.payload.deployment.meta.gitlabCommitAuthorName::String as gitlab_author,
10+
coalesce(github_author::String, gitlab_author::String) as author,
1111
count() as commits,
12-
any(event.payload.deployment.meta.githubRepo) as github_repo,
13-
any(event.payload.deployment.meta.gitlabProjectRepo) as gitlab_repo,
14-
any(event.payload.deployment.meta.githubCommitRef) as branch
12+
any(event.payload.deployment.meta.githubRepo::String) as github_repo,
13+
any(event.payload.deployment.meta.gitlabProjectRepo::String) as gitlab_repo,
14+
any(event.payload.deployment.meta.githubCommitRef::String) as branch
1515
FROM vercel_logs
1616
WHERE event_type = 'deployment.created'
1717
AND event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}

tinybird/pipes/vercel_git_distribution.pipe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ SQL >
66
%
77
SELECT
88
multiIf(
9-
event.payload.deployment.meta.githubRepo != '', 'GitHub',
10-
event.payload.deployment.meta.gitlabProjectRepo != '', 'GitLab',
9+
event.payload.deployment.meta.githubRepo::String != '', 'GitHub',
10+
event.payload.deployment.meta.gitlabProjectRepo::String != '', 'GitLab',
1111
'Other'
1212
) as source,
1313
count() as deployments,

0 commit comments

Comments
 (0)