Skip to content

Commit 1548f47

Browse files
committed
fix
1 parent 314f0c4 commit 1548f47

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tinybird/datasources/gitlab_job.datasource

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ SCHEMA >
1010
`tag` Boolean `json:$.tag` DEFAULT 'false',
1111
`before_sha` String `json:$.before_sha` DEFAULT '',
1212
`sha` String `json:$.sha` DEFAULT '',
13-
`build_id` Nullable(Int32) `json:$.build_id` DEFAULT 0,
13+
`build_id` Nullable(Int64) `json:$.build_id` DEFAULT 0,
1414
`build_name` String `json:$.build_name` DEFAULT '',
1515
`build_stage` String `json:$.build_stage` DEFAULT '',
1616
`build_status` String `json:$.build_status` DEFAULT '',
17-
`build_created_at` DateTime `json:$.build_created_at` DEFAULT now(),
18-
`build_started_at` DateTime `json:$.build_started_at` DEFAULT now(),
19-
`build_finished_at` DateTime `json:$.build_finished_at` DEFAULT now(),
17+
`build_created_at` String `json:$.build_created_at` DEFAULT '',
18+
`build_started_at` String `json:$.build_started_at` DEFAULT '',
19+
`build_finished_at` String `json:$.build_finished_at` DEFAULT '',
2020
`build_duration` Float32 `json:$.build_duration` DEFAULT 0,
2121
`build_queued_duration` Float32 `json:$.build_queued_duration` DEFAULT 0,
2222
`build_allow_failure` Boolean `json:$.build_allow_failure` DEFAULT false,
2323
`build_failure_reason` String `json:$.build_failure_reason` DEFAULT '',
24-
`retries_count` Int32 `json:$.retries_count` DEFAULT 0,
25-
`pipeline_id` UInt32 `json:$.pipeline_id` DEFAULT 0,
26-
`project_id` UInt32 `json:$.project_id`,
24+
`retries_count` Int64 `json:$.retries_count` DEFAULT 0,
25+
`pipeline_id` UInt64 `json:$.pipeline_id` DEFAULT 0,
26+
`project_id` UInt64 `json:$.project_id`,
2727
`project_name` String `json:$.project_name`,
28-
`user_id` UInt32 `json:$.user.id`,
28+
`user_id` UInt64 `json:$.user.id`,
2929
`user` JSON `json:$.user`,
3030
`commit` JSON `json:$.commit` DEFAULT '{}',
3131
`repository_name` String `json:$.repository.name`,

tinybird/datasources/gitlab_pipeline.datasource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SCHEMA >
1313
`project_id` UInt32 `json:$.project.id`,
1414
`project` JSON `json:$.project`,
1515
`commit` JSON `json:$.commit` DEFAULT '{}',
16-
`pipeline_id` UInt32 `json:$.source_pipeline.pipeline_id`,
16+
`pipeline_id` UInt32 `json:$.source_pipeline.pipeline_id` DEFAULT 0,
1717
`source_pipeline` String `json:$.source_pipeline` DEFAULT '',
1818
`builds` Array(JSON) `json:$.builds[:]` DEFAULT '[]'
1919

0 commit comments

Comments
 (0)