rithesh_s
05/18/2021, 1:31 PMmeltano elt tap-gitlab target-postgres --transform run
following the getting started https://meltano.com/docs/getting-started.html
Error Message:
Completed with 15 errors and 0 warnings:Database Error in model gitlab_group_labels (models/base/gitlab_group_labels.sql)
taylor
05/18/2021, 1:32 PM--transform=run
? the =
is importanttaylor
05/18/2021, 1:33 PMrithesh_s
05/18/2021, 1:34 PMrithesh_s
05/18/2021, 1:34 PMrithesh_s
05/18/2021, 1:34 PMtaylor
05/18/2021, 1:34 PMtaylor
05/18/2021, 1:34 PM=
rithesh_s
05/18/2021, 1:36 PMrithesh_s
05/18/2021, 1:36 PMdbt.exceptions.DatabaseException: Database Error in model gitlab_branches (models/base/gitlab_branches.sql)
relation "none.branches" does not exist
LINE 8: select * from None.branches
rithesh_s
05/18/2021, 1:38 PMrithesh_s
05/18/2021, 1:39 PMtaylor
05/18/2021, 1:39 PMnone
is coming from the schema
environment variable. That may not be getting set appropriatelytaylor
05/18/2021, 1:39 PMrithesh_s
05/18/2021, 1:41 PMrithesh_s
05/18/2021, 1:41 PMrithesh_s
05/18/2021, 1:41 PMtaylor
05/18/2021, 1:42 PMmeltano invoke dbt run --models gitlab_commits
rithesh_s
05/18/2021, 1:43 PMRunning with dbt=0.16.1
Encountered an error:
Compilation Error
Env var required but not provided: 'DBT_TARGET'
rithesh_s
05/18/2021, 1:43 PMtaylor
05/18/2021, 1:46 PMrithesh_s
05/18/2021, 1:48 PMrithesh_s
05/18/2021, 1:49 PMmeltano config tap-gitlab set start_date 2020-05-01T00:00:00Z
rithesh_s
05/18/2021, 1:49 PMtaylor
05/18/2021, 1:53 PMinvoke
we ran into this bug https://gitlab.com/meltano/meltano/-/issues/2546taylor
05/18/2021, 1:54 PMrithesh_s
05/18/2021, 2:03 PMrithesh_s
05/18/2021, 2:03 PMrithesh_s
05/18/2021, 2:04 PMDatabase Error in model gitlab_commits (models/base/gitlab_commits.sql)
relation "none.commits" does not exist
LINE 8: select * from None.commits
taylor
05/18/2021, 2:10 PMdbt_project.yml
file to specify the schema it will work. I’m not sure why that’s not already set though. @douwe_maan?rithesh_s
05/18/2021, 2:14 PMrithesh_s
05/18/2021, 2:15 PMtaylor
05/18/2021, 2:15 PMrithesh_s
05/18/2021, 2:17 PMmeltano invoke dbt run --models gitlab_commits
rithesh_s
05/18/2021, 2:17 PMrithesh_s
05/18/2021, 2:18 PMRunning with dbt=0.16.1
Found 23 models, 0 tests, 0 snapshots, 0 analyses, 127 macros, 0 operations, 0 seed files, 0 sources
19:47:27 | Concurrency: 2 threads (target='postgres')
19:47:27 |
19:47:27 | 1 of 1 START view model public.gitlab_commits........................ [RUN]
19:47:27 | 1 of 1 ERROR creating view model public.gitlab_commits............... [ERROR in 0.09s]
19:47:27 |
19:47:27 | Finished running 1 view model in 0.51s.
Completed with 1 error and 0 warnings:
Database Error in model gitlab_commits (models/base/gitlab_commits.sql)
relation "none.commits" does not exist
LINE 6: select * from None.commits
^
compiled SQL at ../.meltano/transformers/dbt/target/run/tap_gitlab/base/gitlab_commits.sql
Done. PASS=0 WARN=0 ERROR=1 SKIP=0 TOTAL=1
rithesh_s
05/18/2021, 2:18 PMtaylor
05/18/2021, 2:19 PMrithesh_s
05/18/2021, 2:21 PMtaylor
05/18/2021, 2:21 PMrithesh_s
05/18/2021, 2:22 PMrithesh_s
05/18/2021, 2:23 PMrithesh_s
05/18/2021, 2:23 PMschema: public
rithesh_s
05/18/2021, 2:23 PMrithesh_s
05/18/2021, 2:23 PM`models:
tap_gitlab:
base:
materialized: table
transform:
materialized: table
vars:
schema: public
taylor
05/18/2021, 2:24 PMrithesh_s
05/18/2021, 2:24 PMrithesh_s
05/18/2021, 2:24 PMrithesh_s
05/18/2021, 2:25 PMtaylor
05/18/2021, 2:26 PMvar('schema')
jinja call in https://gitlab.com/meltano/dbt-tap-gitlab/-/blob/master/models/base/gitlab_commits.sql#L3 will be read from dbt_project.yml. that should match the schema where your data landed in postgresrithesh_s
05/18/2021, 2:26 PMrithesh_s
05/18/2021, 2:27 PMrithesh_s
05/18/2021, 2:28 PMraw Carbon Intensity data
meantaylor
05/18/2021, 2:28 PMrithesh_s
05/18/2021, 2:28 PMrithesh_s
05/18/2021, 2:29 PM....the tap-gitlab dbt package requires three variables, which are used for finding the tables where the raw Carbon Intensity data have been loaded during the Extract-Load phase....
taylor
05/18/2021, 2:29 PMrithesh_s
05/18/2021, 2:30 PMrithesh_s
05/18/2021, 2:30 PMtaylor
05/18/2021, 2:31 PMrithesh_s
05/18/2021, 2:34 PMtaylor
05/18/2021, 2:35 PMrithesh_s
05/18/2021, 2:36 PMtaylor
05/18/2021, 2:36 PMrithesh_s
05/18/2021, 2:36 PMtaylor
05/18/2021, 2:41 PM