You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've confirmed that this exception is not raised by v0.18.1 or v0.19.0-b1 (the version we released on Oct 22), but it is raised when I install dbt from the current development branch dev/kiyoshi-kuromiya.
Steps To Reproduce
Create a model and an exposure with the same name, and define resource properties for both:
version: 2models:
- name: metricsdescription: My metrics modelexposures:
- name: metricstype: dashboarddescription: My metrics dashboarddepends_on:
- ref('metrics')owner:
email: [email protected]
Try running any command, e.g. dbt compile:
dbt found two schema.yml entries for the same resource named metrics. Resources and their associated columns may only be described a single time. To fix this, remove one of the resource entries for metrics in this file:
- models/metrics/schema.yml
Expected behavior
Since exposures are not included in the set of nodes (models, seeds, snapshots, tests) but rather their own resource type (like sources), it should be possible to define properties for an exposure and a model with the same name.
Otherwise, this will be a breaking change in v0.19.0.
The output of dbt --version:
$ dbt --version
installed version: 0.19.0-b1
i.e. current development version in dev/kiyoshi-kuromiya
The text was updated successfully, but these errors were encountered:
Describe the bug
dbt raises the exception
raise_duplicate_patch_name
when an exposure and a model have the samename
:https:/fishtown-analytics/dbt/blob/ce6967d396f6723f44ad8d5efb058c760f27d167/core/dbt/parser/results.py#L156-L158
I've confirmed that this exception is not raised by v0.18.1 or v0.19.0-b1 (the version we released on Oct 22), but it is raised when I install dbt from the current development branch
dev/kiyoshi-kuromiya
.Steps To Reproduce
Create a model and an exposure with the same name, and define resource properties for both:
Try running any command, e.g.
dbt compile
:Expected behavior
Since
exposures
are not included in the set ofnodes
(models, seeds, snapshots, tests) but rather their own resource type (likesources
), it should be possible to define properties for an exposure and a model with the same name.Otherwise, this will be a breaking change in v0.19.0.
The output of
dbt --version
:i.e. current development version in
dev/kiyoshi-kuromiya
The text was updated successfully, but these errors were encountered: