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
This new discussion aims to gather feedback from the community and the DBT team to enable the DBT developers to define their own Jinja Python Macros & Filters being able to integrate them into the code and enhancing their experience with new potential capabilities.
Proposal
Similar to how Airflow handles the capability to allow the Airflow developers to integrate new Macros and Filters into the variables and connections.
The main idea would be to define two new Env vars to import the packages.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This new discussion aims to gather feedback from the community and the DBT team to enable the DBT developers to define their own Jinja Python Macros & Filters being able to integrate them into the code and enhancing their experience with new potential capabilities.
Proposal
Similar to how Airflow handles the capability to allow the Airflow developers to integrate new Macros and Filters into the variables and connections.
The main idea would be to define two new Env vars to import the packages.
DBT_USER_DEFINED_MACROS
: Jinja MacrosDBT_USER_DEFINED_FILTERS
: Jinja FiltersSee the documentation proposal at dbt-labs/docs.getdbt.com#4872 and the required implementation at dbt-labs/dbt-common#72
Usages
Some potential use-cases we would enable could be:
Example
export DBT_USER_DEFINED_MACROS=afranzi.macros:dbt_macros
Beta Was this translation helpful? Give feedback.
All reactions