john_romanski
10/19/2021, 4:21 PMdbt transforms is there a way to invoke this from the command line without running the full EL aspect (which for stripe seems to be a full sync each time)?taylor
10/19/2021, 4:26 PM--transform=only is the way to go https://meltano.com/docs/command-line-interface.html#parameters-2 but, we’re working on a nice refactor which will make it much easier to do things like meltano run <transformation> w/o all of the clutterjohn_romanski
10/19/2021, 4:27 PMjohn_romanski
10/19/2021, 4:28 PMmeltano run transform was what I was expecting. Not sure what multiple will look like yet for me!taylor
10/19/2021, 4:29 PMjohn_romanski
10/19/2021, 4:53 PMdbt-tap-stripe.git on every run?john_romanski
10/19/2021, 4:53 PMtaylor
10/19/2021, 4:54 PMjohn_romanski
10/19/2021, 4:55 PM$ poetry run meltano elt tap-stripe target-postgres --transform only
meltano | Extract & load skipped.
meltano | Running transformation...
dbt | Running with dbt=0.20.2
dbt | Checking ../.meltano/transformers/dbt/target/*
dbt | ERROR: not cleaning ../.meltano/transformers/dbt/target/* because it is protected
dbt | Checking dbt_modules/*
dbt | Cleaned dbt_modules/*
dbt | Checking logs/*
dbt | Cleaned logs/*
dbt | Finished cleaning all paths.
dbt | Running with dbt=0.20.2
dbt | Installing <https://gitlab.com/DigitalTractor/dbt-tap-stripe.git@config-version-2>
dbt | Installed from revision config-version-2
dbt | Running with dbt=0.20.2
dbt | Found 12 models, 0 tests, 0 snapshots, 0 analyses, 148 macros, 0 operations, 0 seed files, 0 sources, 0 exposures
dbt | The selection criterion 'my_meltano_project' does not match any nodesjohn_romanski
10/19/2021, 4:55 PMtaylor
10/19/2021, 4:57 PMdbt deps every time, I seetaylor
10/19/2021, 4:58 PMtaylor
10/19/2021, 4:59 PMjohn_romanski
10/19/2021, 5:01 PMjohn_romanski
10/19/2021, 5:02 PM/transform john$ ../.meltano/transformers/dbt/venv/bin/dbt run
Running with dbt=0.20.2
Encountered an error while reading the project:
ERROR: Runtime Error
Could not find profile named 'meltano'
Encountered an error:
Runtime Error
Could not run dbt
transform john$ dbt
-bash: dbt: command not foundjohn_romanski
10/19/2021, 5:03 PMuse dbt natively from that dirtaylor
10/19/2021, 5:03 PMpoetry run meltano invoke dbt --models <your_model>? I’d expect it to error out with a missing environment variabletaylor
10/19/2021, 5:04 PMenvironments feature @edgar_ramirez_mondragon is working onjohn_romanski
10/19/2021, 5:10 PMpoetry run meltano invoke dbt run --models stripe_customers
Running with dbt=0.20.2
Encountered an error:
Compilation Error
Could not render {{ env_var('DBT_TARGET') }}: Env var required but not provided: 'DBT_TARGET'john_romanski
10/19/2021, 5:12 PMtaylor
10/19/2021, 5:12 PMDBT_TARGET to postgres that should get what you’re looking for. I’m not sure the best way to do that with poetry though.taylor
10/19/2021, 5:13 PMtaylor
10/19/2021, 5:13 PM.env or just export it via the command linejohn_romanski
10/19/2021, 5:14 PMDBT_TARGET=postgresjohn_romanski
10/19/2021, 5:14 PMtaylor
10/19/2021, 5:14 PMtaylor
10/19/2021, 5:15 PMjohn_romanski
10/19/2021, 5:23 PMjohn_romanski
10/19/2021, 5:26 PMmeltano elt tap-stripe target-postgres --transform only could be meltano transform stripe-pipeline or meltano t stripe-pipeline and you could see how meltano el stripe-pipeline and meltano elt stripe-pipeline would do different expected thingstaylor
10/19/2021, 8:45 PMmeltano run command and then you could do whatever you want 🙂