Summary:
This article provides details about a DBT-related error and offers a suggested solution.
Reported Issue:
When executing a DBT run from GitLab or elsewhere, the models are processed, but the DBT job fails with the following error:
"TypeError: MessageToJson() got an unexpected keyword argument 'including_default_value_fields'"_
Relevant Versions
All Versions
Troubleshooting Steps
- Review the
dbt.log
file and other logs generated during the DBT run to identify any additional errors beyond the one mentioned above. - Check for any warnings or errors related to permissions, such as the following, and grant the necessary privileges to the user in Dremio if applicable:
Identifty [user] not authorized to ALTER [<path_to_view_in_dremio>]
- Verify that the versions of the
dbt-dremio
plugin anddbt-core
are compatible and upgrade them if needed.
Cause
The issue is caused by compatibility problems between protobuf
and the DBT core.
Steps to Resolve
The recommended workaround is to install a specific version of protobuf
:
`python -m pip install protobuf==4.25.3`
Once this is done, the job should run successfully.
Reference: Github_dbt-labs
Additional Resources
https://github.com/dbt-labs/dbt-core/issues/9759