-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
generate_schema_name
compilation behavior has changed
#1385
Comments
This was not what I expected it to be! It's another Maybe Or we could stash the context and defer the call to Or maybe there's some way to override the environment after calling At a minimum, it does seem to me like we should probably not have |
Hm so the reason that the |
For posterity, the code that works is:
|
Issue
Issue description
I actually don't know what has changed here, just that something has.
This macro used to throw an error if a model or seed didn't have a custom schema (the desired behavior), but as of 0.12.2 it doesn't throw the error.
Steps to reproduce:
dbt_project.yml
file.3.
dbt compile
Expected results
On 0.12.1 this would return:
Actual results
From 0.12.2 onwards this returns
Notes
I'm very happy for you to slap a #wontfix on this, since when I wrote this code I was hacking at the edges of dbt. But if there's a better way to do this, that would also be good to know!
The text was updated successfully, but these errors were encountered: