question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

better dbt error messages

See original GitHub issue

Describe the bug

dbt threw an error, after our latest merge into the repository. We later realized that, it was because of missing quotes in cluster by config array. But, to identify this error, we had to remove models in trial and error to isolate the error. We would like more descriptive error message for easier isolation and fix.

Running with dbt=0.16.1
Encountered an error:
cannot pickle '_thread.RLock' object

Steps To Reproduce

  1. Using version 0.16.1
  2. In the model config give the cluster by config as below {{
    config( cluster_by = [column1, column2, column3] ) }}
  3. Run any model and you will get below dbt error.

Expected behavior

We wanted to error message to clearly say, where the issue was.

Screenshots and log output

Running with dbt=0.16.1
Encountered an error:
cannot pickle '_thread.RLock' object

System information

Which database are you using dbt with?

  • Snowflake

The output of dbt --version:

0.16.1

**The operating system you’re using: ** windows

The output of python --version: 3.8.2

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rameesrajacommented, Jun 12, 2020

@jtcohen6 : yes it was a mistakes by one of our developers. But the error message was not descriptive enough and that’s why this issue is raised for.

0reactions
github-actions[bot]commented, Nov 14, 2021

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging errors - dbt Developer Hub
Read the error message — when writing the code behind dbt, we try our best to make error messages as useful as we...
Read more >
better dbt error messages · Issue #2538 - GitHub
dbt threw an error, after our latest merge into the repository. We later realized that, it was because of missing quotes in cluster...
Read more >
DBT RUN - Getting Database Error using VS Code BUT Not ...
I'm using DBT connected to Snowflake. I use DBT Cloud, but we are moving to using VS Code for our DBT project work....
Read more >
Source code for dagster_dbt.errors - Dagster Docs
class DagsterDbtCloudJobInvariantViolationError(DagsterDbtError, DagsterInvariantViolationError): """Represents an error when a dbt Cloud job is not supported ...
Read more >
DBT-00001 to DBT-50003 - Oracle Help Center
26 DBT-00001 to DBT-50003. DBT-00001: Error encountered in initialization of configuration tool. ... Action: Refer to the log file for more information.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found