-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
dbt found two macros with the name "test_unique" in the namespace "dbt" #2423
Comments
Which version of The most recent stable release is 0.15.1, which needs to be run alongside the 0.15.1 version of dbt core. It looks like you're running dbt version 0.16.1. I think you'll want to downgrade to use the 0.15.1 versions of both dbt and the dbt-sqlserver plugin until there is a new stable release. In the next minor release of dbt (0.17.0):
We have some additional ideas about making this specific problem easier to spot (#2288) and resolve (#2415) in the future. |
Hi, Facing the same issue in dbt 17.0 version, any quick fix for 17 version? |
@ramgopalan are you also using dbt-sqlserver? |
Yeah @drewbanin |
Hi @drewbanin Any updates? |
I think the real fix here is to implement the change described in #2415. This is not something we can really "quick-fix" in dbt Core. I might be misunderstanding, but I think the issue is that An alternative fix you can implement might be to run:
This will make sure that you get the right version of dbt Core in your environment. Again, I might be missing something here, so please let me know if the thing I'm saying doesn't make any sense :) |
Hi @drewbanin thanks for your solution. I just tried this solution (previously dbt v0.17) and it does work correctly (after realising I really needed to use venvs and not my default conda envs for this). I have raised an issue on the community plugin for the same. (dbt-msft/dbt-sqlserver#31). It would be helpful for future users perhaps to have a version incompatible warning to help out in these kind of situations as the error itself is obviously rather confusing. |
Closing this issue, as I believe it was ultimately resolved by using |
Describe the bug
When run dbt run or dbt test, it always say dbt found two macros with the name "test_unique" in the namespace "dbt", but there is only one file.
tried install and installl dbt and python and dbt-sqlserver which didn't work
dbt test
Running with dbt=0.16.1
Encountered an error:
Compilation Error
dbt found two macros with the name "test_unique" in the namespace "dbt". Since these macros have the same name and exist in the same namespace, dbt will be unable to decide which to call. To fix this, change the name of one of these macros:
Steps To Reproduce
Installed dbt
installed dbt-sqlserver
create dbt sqlserver connection
then run dbt test or dbt test. the got the error
Expected behavior
I should not see this duplicate error
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
Which database are you using dbt with?
sql-server
The output of
dbt --version
:installed version: 0.16.1
latest version: 0.16.1
Up to date!
The text was updated successfully, but these errors were encountered: