You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Built-in macros can't be overridden in dbt run-operation, and dbt docs generate faces a similar problem where users cannot locally override get_catalog.
The other part is that many macro calls that should support overriding (get_catalog is the big one!) currently do not, because they don't use the full manifest.
Steps To Reproduce
Override the get_catalog macro locally to raise: {% macro get_catalog(information_schemas) -%}{% do exceptions.raise_compiler_error('oops') %}{% endmacro %}
Note that dbt picks it up (macros count goes up by 1)
Note that dbt ignores the macro and runs the default one :(
Expected behavior
I expect dbt to use my macro, but instead it ignored it and used dbt.get_catalog.
System information
Any database, dbt >= 0.15.0, any python
The text was updated successfully, but these errors were encountered:
Describe the bug
Built-in macros can't be overridden in
dbt run-operation
, anddbt docs generate
faces a similar problem where users cannot locally overrideget_catalog
.There are two parts to this bug:
adapter_macro
handles that).get_catalog
is the big one!) currently do not, because they don't use the full manifest.Steps To Reproduce
get_catalog
macro locally to raise:{% macro get_catalog(information_schemas) -%}{% do exceptions.raise_compiler_error('oops') %}{% endmacro %}
macros
count goes up by 1)Expected behavior
I expect dbt to use my macro, but instead it ignored it and used
dbt.get_catalog
.System information
Any database, dbt >= 0.15.0, any python
The text was updated successfully, but these errors were encountered: