Joel Friedman
08/01/2023, 6:08 PM2023-08-01 12:57:35 -0500 - dagster - INFO - __ASSET_JOB - 2b4aabf7-7fdc-4eef-8c97-6d4fffc1de15 - run_dbt_06e5b - Running dbt command: `dbt build --select jaffle_shop.stg_customers`.
Running with dbt=1.5.4
Encountered an error:
Runtime Error
Could not find profile named 'jaffle_shop'
rex
08/01/2023, 6:08 PMJoel Friedman
08/01/2023, 6:10 PMprofiles.yml
located at tutorial_template/config/
## Refer to Using dbt with Dagster, part one for info about this file:
## <https://docs.dagster.io/integrations/dbt/using-dbt-with-dagster/part-one#step-2-create-a-duckdb-profile>
jaffle_shop:
target: local
outputs:
local:
type: duckdb
path: tutorial.duckdb
schema: jaffle_shop
Joel Friedman
08/01/2023, 6:13 PMdbt debug --profiles-dir config
in the jaffle_shop
directory returns “All checks passed!”rex
08/01/2023, 6:17 PMDbtCliResource
. Could you do the following?
• move profiles.yml
to tutorial_template/jaffle_shop
(not tutorial_template/jaffle_shop/config
)
• When loading the assets, do the following:
dbt_assets = load_assets_from_dbt_project(project_dir=DBT_PROJECT_PATH, profiles_dir=DBT_PROJECT_PATH, key_prefix=["jaffle_shop"])
Joel Friedman
08/01/2023, 6:18 PMprofiles_dir
on the DbtCliResource
too?rex
08/01/2023, 6:18 PMDbtCliResource
doesn’t have a profiles_dir
argument.Joel Friedman
08/01/2023, 6:19 PMrex
08/01/2023, 6:22 PMJoel Friedman
08/01/2023, 6:22 PMprofiles.yml
from jaffle_shop/config
to jaffle_shop
2. I changed the argument in dbt_assets = load_assets_from_dbt_project
fo be profiles_dir=DBT_PROJECT_PATH
3. (probably not necessary) I removed profiles_dir
from DbtCliResource