I am new to DBT and elementary. I have tried to in...
# community-support
s
I am new to DBT and elementary. I have tried to install and run the elementary command and it says the database is missing. Any inputs on this. More details on this thread
👀 1
✅ 1
.dbt-venv-1_5_2) sravankumarkunadi@MAC-Y9JV49V dbt % dbt run --select elementary 144809 Running with dbt=1.5.7 144809 Registered adapter: snowflake=1.5.2 144810 Unable to do partial parsing because a project dependency has been added 144810 Unable to do partial parsing because a project config has changed 144817 Encountered an error: Compilation Error in macro generate_database_name (macros/overrides/default__generate_database_name.sql) Missing database, please check that the environment variables are properly set and the database is set in dbt_project.yml under model, seeds, test, etc. > in macro generate_database_name (macros/overrides/default__generate_database_name.sql) > called by macro generate_database_name (macros/overrides/default__generate_database_name.sql)
o
Hi @Sravan! do you override the macro
generate_database_name
in your project? can you please share your dbt_project.yml?
s
dbt_project.rtf
o
is there an option to send it not as rtf? it's hard for me to read it this way
s
dbt_project.yml
o
and what does your custom
generate_database_name
look like?
s
are you referring to this ?
image.png
o
yes, looking
It seems like you override the
generate_database_name
and according to its implementation every model needs to have a custom database. A custom database could be configured in the dbt_project.yml. So you need also to configure custom database from the Elementary models. Something along these lines -
(I also added a custom schema for elementary as it's recommended but it really depends on where you want to store the elementary models)
s
models: elementary: +database: "PDM_MDM_DEV_SRAVAN" +schema_name: "elementary_data_observability"
i have updated like these. hope it works
🙏 1
o
Please let us know if it doesn't