Replies: 1 comment
-
Hi @LPauzies, package variables are not accessible from within a project, you can only overwrite them. Check out here an alternative solution you can use and please upvote the idea if you find it useful, thanks! |
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
-
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