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
Hello, I'm currently trying to factorize our dbt project, to achieve this, I have created a dbt package which is private. It is working well with macros, but when I try to import variables into my "main" dbt projects, I'm blocked.
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
-
Hello, I'm currently trying to factorize our dbt project, to achieve this, I have created a dbt package which is private. It is working well with macros, but when I try to import variables into my "main" dbt projects, I'm blocked.
package_dbt/dbt_project.yml
main_project/packages.yml
main_project/dbt_project.yml
main_project/marts.my_mart.sql
As macros, I have tried
{{ var('package_dbt.variable1') }}
but does not work, like{{ package_dbt.var('variable1') }}
Do you have any ideas about this ? Am I missing something ? It seems weird to have the possibility to create packages but not share the variables...
Regards
Beta Was this translation helpful? Give feedback.
All reactions