[Feature] - User Defined Macros & Filters #4872
Labels
content
Improvements or additions to content
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
Not sure if this would be part of the https://docs.getdbt.com/reference/project-configs/macro-paths
Or in https://docs.getdbt.com/reference/dbt-jinja-functions
What part(s) of the page would you like to see updated?
The main idea would be adding documentation about the new incoming feature allowing DBT developers to inject their own python JINJA macros and filters in addition to the native ones, so developers can move complex jinja templating code to python and level up their dbt projects with more possibilities.
Some examples:
by
We can enable this behavior by defining the following ENV vars with the
path:instance
format.DBT_USER_DEFINED_MACROS
: Jinja MacrosDBT_USER_DEFINED_FILTERS
: Jinja FiltersAdditional information
This documentation would be based on this PR dbt-labs/dbt-common#72.
See following example about how I've used it locally:
The text was updated successfully, but these errors were encountered: