al_whatmough
11/16/2020, 12:58 AMtransform: run, it will by default do a dbt run for every dbt model within the transform/models directory. Is this correct?
This seems wasteful - when multiple pipelines are run they're currently building the same dbt models multiple times. I'd like to only build certain models for a given schedule. For example, if I have pipeline called foo, I could set it to only build models under transform/models/my_meltano_projct/bar (equivalent to doing dbt run --models bar). Is there any way to set this up?douwe_maan
11/16/2020, 4:44 PMIt seems that each when a pipeline schedule hasYep, the default value of, it will by default do atransform: runfor every dbt model within thedbt rundirectory. Is this correct?transform/models
dbt 's models setting is $MELTANO_TRANSFORM__PACKAGE_NAME $MELTANO_EXTRACTOR_NAMESPACE my_meltano_project, and my_meltano_project refers to the local dbt project with models in transform/models .douwe_maan
11/16/2020, 4:46 PMFor example, if I have pipeline calledDefinitely! You can change the, I could set it to only build models underfoo(equivalent to doingtransform/models/my_meltano_projct/bar). Is there any way to set this up?dbt run --models bar
models setting for all dbt runs using meltano config dbt set models <your --models argument> , or for a specific meltano elt pipeline by setting the DBT_MODELS env var:
meltano config dbt set models bar
export DBT_MODELS=bardouwe_maan
11/16/2020, 4:47 PMdouwe_maan
11/16/2020, 4:47 PMal_whatmough
11/16/2020, 10:34 PMal_whatmough
11/16/2020, 10:37 PMmeltano add dashboard dashboard-shopify, for example, I think the dashboard definition will be saved in /analyze/dashboards at the top level. It'd be good to store it in /analyze/dashboards/dashboard-shopifydouwe_maan
11/16/2020, 10:38 PManalyze/{dashboards,reports} directories, so we'd need to change that firstdouwe_maan
11/16/2020, 10:39 PMal_whatmough
11/16/2020, 11:09 PMal_whatmough
11/16/2020, 11:10 PMDBT_MODELS env var - to use this, would I need to remove my current default schedule(s) and replace them with a custom DBT_MODELS=bar meltano elt tap-foo target-bar command for this to work?douwe_maan
11/16/2020, 11:11 PMenv dictionary under schedules : https://meltano.com/docs/integration.html#pipeline-specific-configurationdouwe_maan
11/16/2020, 11:12 PMdbt_models: bar , which you can then reference from the value of models in meltano.yml using $MELTANO_EXTRACT__DBT_MODELSdouwe_maan
11/16/2020, 11:12 PMal_whatmough
11/16/2020, 11:14 PM