[FEATURE] Set all macro namespace by default to ['<name_of_your_root_project>', '<macro_namespace>']
#4106
Labels
Milestone
['<name_of_your_root_project>', '<macro_namespace>']
#4106
As suggested by @jtcohen6 in comment, change this
dbt-core/core/dbt/context/providers.py
Lines 146 to 147 in 280e9ad
to:
With this change, by default we prefer macro overwrites for packages (like
spark__create_table_as
) defined in the root project over the ones defined in the package. The user can change the preference behavior by defining the search order explicitly:In the old behavior the macros for packages in the root folder are not preferred over the ones in the packages, needing the user to explicitly set the search order to:
We think that the proposed change is a more sensible default.
The text was updated successfully, but these errors were encountered: