Skip to content

[Bug] Error message: dbt found two relations in your warehouse with similar database identifiers #12629

@dbeatty10

Description

@dbeatty10

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

See the error message mentioned in #11776:

Compilation Error
  dbt found two relations in your warehouse with similar database identifiers. dbt
  is unable to determine which of these relations was created by the model "source.dbt_pipeline.raw_dcrm.subject".
  In order for dbt to correctly generate the catalog, one of the following relations must be deleted or renamed:
  
   - raw_dcrm.Subject
   - raw_dcrm.subject

But these are sources not models! So the message should be something like this instead (which is specific to sources):

dbt is unable to determine which of these relations is associated with the source "source.dbt_pipeline.raw_dcrm.subject"

or this (if we want something generic that can apply to models, sources, seeds, and snapshots):

dbt is unable to determine which of these relations is associated with the node "source.dbt_pipeline.raw_dcrm.subject"

Expected Behavior

See above.

Steps To Reproduce

See #11776

Relevant log output

Environment

- OS:
- Python:
- dbt:

Which database adapter are you using with dbt?

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions