nick_james
04/26/2022, 8:56 PMtaylor
04/26/2022, 9:01 PMnick_james
04/26/2022, 9:03 PMtransformers:
- name: dbt-snowflake
pip_url: dbt-core~=1.0.0 dbt-snowflake~=1.0.0
commands:
bi_model:
args: run --select +bi_model
description: Run dbt, selecting model `my_model_name` and all upstream models.
Read more about the dbt node selection syntax at <https://docs.getdbt.com/reference/node-selection/syntax>
files:
nick_james
04/26/2022, 9:03 PMnick_james
04/26/2022, 9:05 PMnick_james
04/26/2022, 9:10 PM1. extract tables foo, bar, baz from postgres
2. load tables foo. bar baz into snowflake
3. run dbt model that queries tables foo, bar and baz
what i haven’t figured out yet is how to properly configure a schedule with the select
key to limit the list of tables it replicates, and how to reference that specific dbt command for the transformnick_james
04/26/2022, 9:27 PMmeltano schedule run postgres-snowflake
with the config
schedules:
- name: postgres-snowflake
extractor: tap-postgres
loader: target-snowflake
transform: run
interval: '@daily'
start_date: 2022-04-26 17:58:03.162731
env:
MELTANO_EXTRACT_SELECT: public-table_1
DBT_SNOWFLAKE_MODELS: bi_model
MELTANO_TRANSFORM_NAME: dbt-snowflake
i get Transformer 'dbt' is not known to Meltano
nick_james
04/26/2022, 9:42 PMdbt-snowflake
transformer and to limit the select on the postgres tap to the one table.taylor
04/26/2022, 9:49 PMmeltano elt
which is limiting on what you can do with dbt. but! https://gitlab.com/meltano/meltano/-/issues/2924 is slated to be worked on starting next week and will basically solve this. You’d be able to use meltano run and the jobs
definition to do whatever you want and then schedules could just reference that jobnick_james
04/26/2022, 9:49 PMnick_james
04/26/2022, 9:49 PMtaylor
04/26/2022, 9:51 PMTransformer 'dbt' is not known to Meltano
error makes sense to me too if you’re using the adapter-specific installation for dbt-snowflake. meltano elt
is looking for the full dbt
pluginnick_james
04/26/2022, 9:53 PMnick_james
04/26/2022, 9:55 PMmeltano
commands to do the individual tasks?taylor
04/26/2022, 9:57 PMnick_james
04/26/2022, 10:02 PM/orchestrate/dags
folder or would that mess up whatever the autogeneration meltano is doing?pat_nadolny
04/26/2022, 10:05 PMhttps://www.youtube.com/watch?v=pNGJ96HOioM&list=PLO0YrxtDbWAvytzdULRNfvWDTErPr-qZG&index=3▾
nick_james
04/26/2022, 10:07 PMpat_nadolny
04/26/2022, 10:12 PMnick_james
04/26/2022, 10:38 PMnick_james
04/26/2022, 10:49 PMpat_nadolny
04/27/2022, 1:38 PMnick_james
04/27/2022, 4:48 PM/orchestrate/dags
folder and just started putting dag configs in a yaml file in /orchestrate