https://dagster.io/ logo
#ask-community
Title
# ask-community
y

Yuan Cheng

02/02/2023, 7:51 PM
Hi guys, in order to load dbt models in dagster, do I have to have config part inside of dbt model? Like this:
Copy code
{{
    config(
        materialized='view',
    )
}}
j

jamie

02/02/2023, 8:59 PM
cc @owen
o

owen

02/02/2023, 8:59 PM
nope! the config can be anywhere
y

Yuan Cheng

02/02/2023, 9:11 PM
but when I removed this part from my dbt model, the dbt model will not show up in my dagster
example:
Copy code
{{
    config(
        materialized='view',
    )
}}
with source as (

    select * from {{ source('any', 'any') }}

)


select * from source
o

owen

02/02/2023, 9:12 PM
what command are you using to load your dbt models? and do you have any default config defined in your dbt project?
view
and
table
models will show up as assets in dagster, but
ephemeral
ones will not
y

Yuan Cheng

02/02/2023, 9:14 PM
I am using load_assets_from_dbt_project
oh got it, I saw the ephemeral is our default setting, thx a lot!
🌈 1
2 Views