How to define a task for dbt-postgres with parame...
# getting-started
m
How to define a task for dbt-postgres with parameters, such as:
Copy code
jobs:
- name: job-01
  tasks:
  - tap-postgres target-postgres
  - dbt-postgres:clean dbt-postgres:run --select tag:tag1 tag:tag2
Copy code
meltano invoke dbt-postgres:run --select tag:foo # works fine
meltano run dbt-postgres:run --select tag:foo # Error: No such option: --select
v
I think there's a feature request in for some of that.
Copy code
meltano run dbt-postgres:run --select tag:foo # Error: No such option: --select
To do it now I believe you can use https://docs.meltano.com/concepts/plugins#select-filter-extra (env vars) , if that one doesn't' work with
meltano run
(I think it does)
meltano elt
definitely supports it.
If you don't need it to be dynamic another way to support it is inheritance see https://docs.meltano.com/concepts/plugins#plugin-inheritance
t
You can define commands for the plugin and then reference them in the job definition https://docs.meltano.com/concepts/project#plugin-commands