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

Running dbt with a duplicate test name gives an unhelpful error #2406

Closed
1 task done
Tbodewes opened this issue May 6, 2020 · 1 comment · Fixed by #2407
Closed
1 task done

Running dbt with a duplicate test name gives an unhelpful error #2406

Tbodewes opened this issue May 6, 2020 · 1 comment · Fixed by #2407
Labels
bug Something isn't working

Comments

@Tbodewes
Copy link

Tbodewes commented May 6, 2020

Describe the bug

Running dbt run when there are multiple tests with the same name leads to an unhelpful error local variable 'get_func' referenced before assignment

Steps To Reproduce

  1. Create two tests with the same name (in different folders) of the project.
  2. Run dbt run
  3. See the below error:
Running with dbt=0.16.1
Encountered an error:
local variable 'get_func' referenced before assignment

Expected behavior

To receive a descriptive error like 'path1' and 'path2' give a test/resource with a duplicate name. Please ensure tests/resources have unique names.

System information

Which database are you using dbt with?

  • snowflake

The output of dbt --version:

installed version: 0.16.1
   latest version: 0.16.1

Up to date!

The operating system you're using:
Windows 10 Pro, version 1909, OS build 18363.778

The output of python --version:
Python 3.8.0

@Tbodewes Tbodewes added bug Something isn't working triage labels May 6, 2020
@drewbanin drewbanin removed the triage label May 6, 2020
@drewbanin drewbanin added this to the Octavius Catto milestone May 6, 2020
@drewbanin
Copy link
Contributor

Thanks for the report @Tbodewes - should be a quick fix :)

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.

2 participants