Replies: 1 comment
-
+1 for this feature @afranzi and whoever interested in this feature. opendbt is already enabling this and much more features in an elegant way. leaving here links extending adapters with new python methods exposed to jinja integrating dlt adapters examples |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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