-
Notifications
You must be signed in to change notification settings - Fork 119
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
DbtRuntimeError.__init__() missing 1 required positional argument: 'msg' #169
Comments
It looks like there's a bug in error message handling/logging that keeps you from seeing the underlying ClickHouse exception I've pushed a fix for that in the new release 1.4.4. My guess is that's hiding the real error message which might be related to some Postgres issue. If you can try the 1.4.4 dbt-clickhouse version that might point to the root cause. You might also check your ClickHouse server logs for related errors. |
@genzgd I've updated dbt-clickhouse to 1.4.4 version and now I'm seeing this error.
I found out that by running the model with this syntax the error message shows up:
But when running the model like this, the table is successfully built:
Here are some logs. Tbh these logs also shown when dbt succeeds:
|
That looks like a network error in the underlying HTTP request from dbt to your ClickHouse server. How long does this select usually take? Where is the Clickhouse server you are connecting to? |
Oh, you're doing this on localhost, so it's probably an error between your localhost and the Postgres server? |
The query takes around 20 - 25min for |
It could just be a coincidence. Unfortunately the error still doesn't provide much information once it's been processed through several DBT layers. You could try running the same query using just the underlying python client ( Does the DBT debug log show anything in addition to that error message? |
Found my issue!
|
Describe the bug
I am having this error message when trying to build both materialized tables and incremental tables. The funny thing is that sometimes I am able to build the tables and sometimes I get this error message.
When successful, the table is build with all the data. But when it fails, an empty table is created in my database.
Steps to reproduce
For materialized tables
profiles.yaml
stg_transaction_event_card.sql
example code:For incremental tables
profiles.yaml
stg_transaction_event_card.sql
example code:Configuration
Environment
dbt-core=1.4.6
dbt-clickhouse=1.4.2
Python=3.11.4
The text was updated successfully, but these errors were encountered: