Closed marinsix closed 3 years ago
Hey @marinsix, sorry for the confusing error here. What you're trying to do is declare sources, in the form of defining properties under a sources
block in a models/*.yml
file.
What your current code is actually doing, while it's in the file dbt_project.yml
instead, is attempting to configure existing sources—but those sources don't yet exist (you need to declare them first), and sources don't support those properties as configs.
The resolution is straightforward: Move your sources
block out from dbt_project.yml
and into a .yml
file (with any name) under the models/
directory.
The distinction between properties and configs exists for technical reasons. We know it's confusing and have planned work to reconcile them as best as we can (#2401).
Describe the bug
Unable to compile sources definition in dbt_project.yml. When i define my sources, I have this compilation error :
Steps To Reproduce
In dbt_project.yml file, add this section :
Save the file. I have this long error message :
Save the file again. Now the error message is :
Expected behavior
I expect not to have any compilation error as the yml structure looks fine.
Screenshots and log output
System information
Which database are you using dbt with?
The output of
dbt --version
: I guess 0.18.1 as it is stated in the compilation error message, but dbt --version command fails so I am not sure :The operating system you're using: Windows 10
The output of
python --version
: Python 3.8.6Additional context
Here is the whole dbt_project.yml file :