cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

DBT JOBS FAILING

rsamant07
New Contributor III

HI ,

we have dbt workflow jobs and its been failing randomly from last few days  with below error.  is there any known issue for this , any help on the root cause will be helpful.

Encountered an error: Runtime Error Database Error __init__() got an unexpected keyword argument 'allowed_methods'

2 REPLIES 2

shan_chandra
Databricks Employee
Databricks Employee

@rsamant07  - you could try either one of the below 

1)  Please check the "dbt_databricks_version" and upgrade to 1.5.7 (if it is below 1.5.7) or

2) Downgrade the "databricks_sql_connector_version"  from 3.0.0 to a lower value.

Please try and let us know.

rsamant07
New Contributor III

setting dbt-databricks==1.7.3 solved this issue but now we randomly get the below error . it gets fixed after restrating the cluster sometimes. but is there any permanent solution for this ?

 

from dbt.events import types_pb2 File "/databricks/python3/lib/python3.8/site-packages/dbt/events/types_pb2.py", line 5, in <module> from google.protobuf.internal import builder as _builder File "/databricks/python3/lib/python3.8/site-packages/google/protobuf/internal/builder.py", line 18, in <module> from google.protobuf.internal import python_message File "/databricks/python3/lib/python3.8/site-packages/google/protobuf/internal/python_message.py", line 36, in <module> from google.protobuf import descriptor as descriptor_mod File "/databricks/python3/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 17, in <module> from google.protobuf.internal import api_implementation File "/databricks/python3/lib/python3.8/site-packages/google/protobuf/internal/api_implementation.py", line 81, in <module> from google.protobuf.pyext import _message TypeError: bases must be types

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now