-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Bug] generate_schema_name doesn't work anymore after updating to 1.9.1 #11347
Comments
Thanks for reaching out @elycenok-wowcorp ! I wasn't able to reproduce this, so could you try to reproduce this with a vanilla dbt project? If you're able to reproduce this, could you share your database adapter name and version as well? More detailUsing a custom
Here's the custom macro that I used:
{% macro generate_schema_name(custom_schema_name, node) -%}
{%- set default_schema = target.schema -%}
{%- if custom_schema_name is none -%}
{{ default_schema }}_123
{%- else -%}
{{ default_schema }}_{{ custom_schema_name | trim }}_456
{%- endif -%}
{%- endmacro %} |
thanks for the response @dbeatty10 ! sounds good, we are just working this around, but I might spend some time on it during the weekend (BigQuery adapter)
.... |
@elycenok-wowcorp I tried it out with dbt-bigquery, and that worked for me as well:
So just let us know if you're able to figure out a simplified project where a customized |
Is this a new bug in dbt-core?
Current Behavior
after updating the core dbt 1.6.5 -> 1.9.1 doesn't react to the macro ... generate_schema_name
https://hub.getdbt.com/calogica/dbt_expectations/latest/
didn't experiment more but can try to reproduce on a vanilla installation
we've tried
Expected Behavior
should pick up the macro and react to that
Steps To Reproduce
Didn't get to that for now. Only a problem after migrating to 1.9.1 didn't change anything else
I guess it can be reproduced by create a brand new project, adding the macro and finding out that nothing really changes.
Can spend time on that later if required.
Relevant log output
no reaction to macro while before there was a clear schema customisation
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: