stephen_bailey
07/21/2021, 10:57 PMmeltano elt tap-salesforce target-snowflake —transform sources.Salesforce+
to run all models downstream of the loaded source, in my (one) dbt project. Is that possible?edgar_ramirez_mondragon
07/21/2021, 11:21 PMmeltano elt tap-salesforce target-snowflake --transform=run
Meltano will execute behind the scenes
dbt run --models \
$MELTANO_TRANSFORM__PACKAGE_NAME \
$MELTANO_EXTRACTOR_NAMESPACE \
my_meltano_project
So you could tweak the setting in meltano.yml
like
plugins:
extractors:
- name: salesforce
namespace: Salesforce
transformers:
- name: dbt
pip_url: dbt==0.19.1
config:
models: +sources.$MELTANO_EXTRACTOR_NAMESPACE
stephen_bailey
07/21/2021, 11:45 PMedgar_ramirez_mondragon
07/22/2021, 12:05 AMmodels
setting as in the above meltano.yml
example to only use a +something selector. If you still want to make your transform a package, you can make it a local one if you don't want to spin it out into its own repostephen_bailey
07/22/2021, 12:51 AMtransforms
directory? the way i have it organized right now is:
.
.. my_dbt_project
.... dbt_project.yml
.... models/
.... etc.
.. my_meltano_project
.... meltano.yml
.... transforms
...... .gitkeep
.... extractors
it’s not clear to me what i should run with meltano add transform dbt
. Does my_dbt_project
need to be nested under my_meltano_project? Or do I need to add a packages.yml
file in the transforms
directory, and reference ../my_dbt_project
there?visch
07/22/2021, 3:03 AMtaylor
07/22/2021, 3:43 PMedgar_ramirez_mondragon
07/22/2021, 3:47 PMtaylor
07/22/2021, 4:05 PMedgar_ramirez_mondragon
07/22/2021, 4:49 PMedgar_ramirez_mondragon
07/22/2021, 6:06 PMedgar_ramirez_mondragon
07/22/2021, 6:11 PMplugins:
extractors:
- name: salesforce
namespace: Salesforce
transformers:
- name: dbt
pip_url: dbt==0.19.1
config:
models: +sources.$MELTANO_EXTRACTOR_NAMESPACE
project_dir: /path/to/my_dbt_project
profiles_dir: /path/to/dbt_profiles
visch
07/22/2021, 6:11 PMvisch
07/22/2021, 6:12 PMvisch
07/22/2021, 6:14 PMmodels: stage.salesforce+
in that case, but hmm I'll think more this weekendedgar_ramirez_mondragon
07/22/2021, 6:24 PMstephen_bailey
07/23/2021, 1:31 AMtaylor
07/23/2021, 1:30 PM