/orchest-elt-meltano-dbt

Example of an ELT pipeline in Orchest using meltano and dbt

Primary LanguageJupyter Notebook

ELT pipeline in Orchest with meltano and dbt

Open in Orchest

Creating an ELT pipeline in Orchest that extracts data from PostgreSQL and loads it to BigQuery using meltano and dbt.

Pipeline visualization

Credentials

To make the main pipeline work, you need a GOOGLE_APPLICATION_CREDENTIALS environment variable pointing to a path containing a JSON key with BigQuery credentials (see instructions).

Development

Init commands

These commands were used to create the configuration file, using the Jupyter Console. There is no need to run them again.

! meltano init meltano
% cd meltano
! meltano add extractor tap-postgres
! meltano add loader target-bigquery
! meltano config tap-postgres set user postgres
! meltano config tap-postgres set dbname postgres
! meltano config tap-postgres set password ''
! meltano select tap-postgres '*' '*'
! meltano config tap-postgres set _metadata '*' replication-method FULL_TABLE
! meltano add transformer dbt-bigquery