Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is a bug / feature request, or if I am just misunderstanding something, so I am asking here.
Also, forgive me as I am setting up this for other users at my company and I am not familiar with VSCode or Typescript.
Issue
Our dbt setup is integrated in a larger system, and uses a shim of the
dbt
command that does a few things:--vars
The first one is a nuisance but not a true blocker, since we can just have our analysts use
~/.dbt
and have them use manually entered credentials and just rotate them when needed.For the purposes of
vscode-dbt-power-user
, the thing I am struggling to work around though is the fact we usevar()
calls in ourdbt_project.yml
file. It's an open issue in dbt-core thatvar()
s inside ofdbt_project.yml
cannot themselves be set with thevars:
attribute in the yaml, so it necessitates passing in--vars
in each CLI call.The shimmed
dbt
command in our local setup works around this limitation of dbt, but there does not seem to be a way for us to hook into that so we are out of luck.Two possible solutions
At least for my use case, one way around this would be to parameterize the
dbt
command in all invocations, not justdbt run
anddbt build
, which is the current setup. This way alldbt ...
calls could contain--vars
. (This wouldn't solve the AWS credentials thing, but it would solve thevars
thing which is the bigger issue I have.)Another solution would be to allow for altering the invocation of dbt itself. I see that the code executes
python -c "CODE_STRING"
where the code runsdbtRunner
from the dbt Python package. If we could alter theCODE_STRING
, this would make it feasible to do what we want. (This would solve both of my blockers.)Beta Was this translation helpful? Give feedback.
All reactions