Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dcv 2805 env var jinja template call isnt working in sources yaml for dbt core interface #11

Conversation

BAntonellini
Copy link

@BAntonellini BAntonellini commented Aug 9, 2024

Balboa's _loans.yml

version: 2

sources:
  - name: LOANS
    database: "{{ env_var('DATACOVES__MAIN__DATABASE','DEFAULT') }}"

without this PR
Error registering dbt project in Datacoves Power User <ContextVar name='DBT_INVOCATION_CONTEXT_VAR' at 0x120c18450>

with it

127.0.0.1 - - [09/Aug/2024 09:29:04] "POST /register?project_dir=%2Fconfig%2Fworkspace%2Ftransform&profiles_dir=%2Fconfig%2F.dbt HTTP/1.1" 200 97
127.0.0.1 - - [09/Aug/2024 09:29:04] "GET /health HTTP/1.1" 200 261
127.0.0.1 - - [09/Aug/2024 09:29:04] "GET /health HTTP/1.1" 200 261
127.0.0.1 - - [09/Aug/2024 09:29:04] "GET /parse?reset=false HTTP/1.1" 200 42

manifest.json

"sources": {
    "source.balboa.LOANS.PERSONAL_LOANS": {
      "database": "BALBOA_DEV",
      [...]

@BAntonellini BAntonellini requested a review from ssassi August 9, 2024 12:33
@BAntonellini BAntonellini merged commit 98e20a8 into main Aug 9, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants