-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_models seems broken in 1.8 #172
Comments
thanks @sdebruyn -- we're getting ready to cut a new release next week so we'll dig into this and make sure it gets fixed before we do that! thanks for the heads up! |
Could the example in the readme (https://github.com/dbt-labs/dbt-codegen?tab=readme-ov-file#generate_model_yaml-source) that uses codegen.get_models be updated to include 'if execute'? As the documentation is written now, it results in the error described in this issue. |
Echoing this, I've got it running in an analysis file by wrapping it in an
Scratch that, the above doesn't work; it adds duplicate entries to my various yaml files |
Steps to reproduce
{{ log('repro: ' ~ codegen.get_models(directory='somedir')) }}
dbt run -s your_analysis
Expected results
A log with your models
Actual results
Compilation error
'dict object' has no attribute 'nodes'
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: macOS
The output of
python --version
: Python 3.11.8The text was updated successfully, but these errors were encountered: