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

Database Error in model depin_revenue on local dbt compile #5744

Closed
0xRobin opened this issue Apr 5, 2024 · 3 comments · Fixed by #5746
Closed

Database Error in model depin_revenue on local dbt compile #5744

0xRobin opened this issue Apr 5, 2024 · 3 comments · Fixed by #5746
Labels
bug Something isn't working

Comments

@0xRobin
Copy link
Collaborator

0xRobin commented Apr 5, 2024

I'm getting

09:23:02  Encountered an error:
Runtime Error
  Database Error in model depin_revenue (models/_sector/depin/depin_revenue.sql)
    failed to execute: HTTPConnectionPool(host='trino', port=1234): Max retries exceeded with url: /v1/statement (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd5d60afe80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

When running dbt compile.

I believe this is due the use of dbt_utils.union_relations here:

dbt_utils.union_relations(
relations=[
ref("geodnet_polygon_revenue")
]
)

which might require a database connection to work? 🤔

Are we able to rewrite this with a 'vanilla' union loop?

cc: @0xnirmal @Hosuke @jeff-dude

@0xRobin 0xRobin added the bug Something isn't working label Apr 5, 2024
@tomfutago
Copy link
Contributor

Yep, I'm getting this error too, thanks for looking into this!

@Hosuke
Copy link
Collaborator

Hosuke commented Apr 5, 2024

Sorry I forgot dbt_utils.union_relations is not supported locally.

@jeff-dude
Copy link
Member

nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants